JingleConnection: fixed rare npe when canceling jingle
This commit is contained in:
parent
c52492ada0
commit
2d42646893
|
@ -100,7 +100,7 @@ public class JingleConnection implements Transferable {
|
||||||
private byte[] expectedHash = new byte[0];
|
private byte[] expectedHash = new byte[0];
|
||||||
|
|
||||||
private boolean responding() {
|
private boolean responding() {
|
||||||
return responder.equals(account.getJid());
|
return responder != null && responder.equals(account.getJid());
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean initiating() {
|
private boolean initiating() {
|
||||||
|
@ -914,8 +914,7 @@ public class JingleConnection implements Transferable {
|
||||||
}
|
}
|
||||||
this.mJingleConnectionManager.updateConversationUi(true);
|
this.mJingleConnectionManager.updateConversationUi(true);
|
||||||
} else {
|
} else {
|
||||||
this.mXmppConnectionService.markMessage(this.message,
|
this.mXmppConnectionService.markMessage(this.message, Message.STATUS_SEND_FAILED);
|
||||||
Message.STATUS_SEND_FAILED);
|
|
||||||
this.message.setTransferable(null);
|
this.message.setTransferable(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue