diff options
author | Santos Cordon <santoscordon@google.com> | 2013-09-24 15:21:46 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-09-24 15:21:46 -0700 |
commit | c65ca96b36750b06a2c8ad1ceb4470b295cb9037 (patch) | |
tree | a4003c19fbdcf9acc3a201b5422a7e69bc827657 | |
parent | 887217f607355b454ac47cbf1172494a07b2e308 (diff) | |
parent | 5bd7192b2208f2db47af9982469e55440d015c32 (diff) |
am 436328c1: Merge "Check for null during notification hangup Intent receipt." into klp-dev
* commit '436328c16e448ac70d676e73469a12d69077e8e9':
Check for null during notification hangup Intent receipt.
-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(); |