diff options
author | Jay Shrauner <shrauner@google.com> | 2013-12-05 15:50:47 -0800 |
---|---|---|
committer | Jay Shrauner <shrauner@google.com> | 2013-12-05 15:50:47 -0800 |
commit | 51670740e4c3267d990843ac0aa652b97dec57ad (patch) | |
tree | 026be4a48858968a07ff05880b89de5b34ec21ed /InCallUI | |
parent | 7a52a41baddd6e01aa0062ab0f0c7d668b169620 (diff) |
Fix NPE in onPostDialCharWait
Handle calls to onPostDialCharWait when mInCallActivity is null.
Bug:12021342
Change-Id: Id8da6074f7bd3a0c0962dbaa9246c2de18e6e38b
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallPresenter.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallPresenter.java b/InCallUI/src/com/android/incallui/InCallPresenter.java index 69eba98de..274be6e2d 100644 --- a/InCallUI/src/com/android/incallui/InCallPresenter.java +++ b/InCallUI/src/com/android/incallui/InCallPresenter.java @@ -425,7 +425,9 @@ public class InCallPresenter implements CallList.Listener { } public void onPostDialCharWait(int callId, String chars) { - mInCallActivity.showPostCharWaitDialog(callId, chars); + if (isActivityStarted()) { + mInCallActivity.showPostCharWaitDialog(callId, chars); + } } /** |