Merge "Fixing the NPE in SipPhone bug id: http://b/2987816" into gingerbread

This commit is contained in:
Hung-ying Tyan
2010-09-15 13:02:46 -07:00
committed by Android (Google) Code Review

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) {