JingleConnection: fixed rare npe when canceling jingle

This commit is contained in:
Daniel Gultsch 2017-11-16 12:49:15 +01:00
parent c52492ada0
commit 2d42646893
1 changed files with 2 additions and 3 deletions

View File

@ -100,7 +100,7 @@ public class JingleConnection implements Transferable {
private byte[] expectedHash = new byte[0];
private boolean responding() {
return responder.equals(account.getJid());
return responder != null && responder.equals(account.getJid());
}
private boolean initiating() {
@ -914,8 +914,7 @@ public class JingleConnection implements Transferable {
}
this.mJingleConnectionManager.updateConversationUi(true);
} else {
this.mXmppConnectionService.markMessage(this.message,
Message.STATUS_SEND_FAILED);
this.mXmppConnectionService.markMessage(this.message, Message.STATUS_SEND_FAILED);
this.message.setTransferable(null);
}
}