From fd07a350db8a3184f39c1d0972456fc4e7b9629f Mon Sep 17 00:00:00 2001 From: damencho Date: Tue, 28 Jul 2015 14:53:42 -0500 Subject: Fixes possible NPE, peer going from failed to connected and a dispatching of a DialogTerminatedEvent (fixes damencho/jigasi#5 issue). --- src/net/java/sip/communicator/impl/protocol/sip/CallPeerSipImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/net/java/sip/communicator/impl') diff --git a/src/net/java/sip/communicator/impl/protocol/sip/CallPeerSipImpl.java b/src/net/java/sip/communicator/impl/protocol/sip/CallPeerSipImpl.java index d9d19d3..d8f46cd 100644 --- a/src/net/java/sip/communicator/impl/protocol/sip/CallPeerSipImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/sip/CallPeerSipImpl.java @@ -858,8 +858,11 @@ public class CallPeerSipImpl // 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); -- cgit v1.1