diff options
author | Santos Cordon <santoscordon@google.com> | 2013-09-24 22:19:05 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-09-24 22:19:05 +0000 |
commit | 5bd7192b2208f2db47af9982469e55440d015c32 (patch) | |
tree | a690a661f5f87f381b54eff03c7de1242048539d /InCallUI | |
parent | 99dbec99cb6bd327b3a3bbe5ba6818b16ff72ede (diff) | |
parent | 7330bc3fd1b98ddbef8f143d3cd27db4a86929fd (diff) |
Merge "Check for null during notification hangup Intent receipt." into klp-dev
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallPresenter.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallPresenter.java b/InCallUI/src/com/android/incallui/InCallPresenter.java index 02ac0bec3..499dea0a1 100644 --- a/InCallUI/src/com/android/incallui/InCallPresenter.java +++ b/InCallUI/src/com/android/incallui/InCallPresenter.java @@ -308,6 +308,12 @@ public class InCallPresenter implements CallList.Listener { * Hangs up any active or outgoing calls. */ public void hangUpOngoingCall() { + // By the time we receive this intent, we could be shut down and call list + // could be null. Bail in those cases. + if (mCallList == null) { + return; + } + Call call = mCallList.getOutgoingCall(); if (call == null) { call = mCallList.getActiveOrBackgroundCall(); |