Fixes possible NPE, peer going from failed to connected and a dispatching of a DialogTerminatedEvent (fixes damencho/jigasi#5 issue).

smack4
damencho 11 years ago
parent dfe9388425
commit fd07a350db

@ -858,8 +858,11 @@ public void processInviteOK(ClientTransaction clientTransaction,
// as its connected, set initial mute status,
// corresponding call status
if(isMute() != this.getCall().isMute())
if (this.getCall() != null
&& isMute() != this.getCall().isMute())
{
setMute(this.getCall().isMute());
}
}
fireResponseProcessed(ok, null);

Loading…
Cancel
Save