Fixing the NPE in SipPhone

bug id: http://b/2987816

Change-Id: Iee252eee0a5243b70ff0b6f287279f92235b5b2d
This commit is contained in:
Chung-yih Wang
2010-09-15 16:03:24 +08:00
parent 5306e0a85d
commit 94e498332a

View File

@@ -754,7 +754,7 @@ public class SipPhone extends SipPhoneBase {
Log.v(LOG_TAG, "hangup conn: " + mPeer.getUriString() + ": "
+ ": on phone " + getPhone().getPhoneName());
try {
mSipAudioCall.endCall();
if (mSipAudioCall != null) mSipAudioCall.endCall();
setState(Call.State.DISCONNECTING);
setDisconnectCause(DisconnectCause.LOCAL);
} catch (SipException e) {