diff options
author | Yorke Lee <yorkelee@google.com> | 2015-07-01 21:40:36 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-07-01 21:40:37 +0000 |
commit | 33cca17c91bb64147725d1d84eed92845fe572b7 (patch) | |
tree | ce3968035941f213afa12e574d0f3cd24e1bf9c8 /src/com/android/dialer/DialtactsActivity.java | |
parent | b3bd721b4bd7c6a88e258fe5eb01b88ded46c2f2 (diff) | |
parent | 24d034f92998a52868c10039e9c728f9ab5a44aa (diff) |
Merge "Fix dialer monkey NPEs" into mnc-dev
Diffstat (limited to 'src/com/android/dialer/DialtactsActivity.java')
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index ba1b8d163..546a64666 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -911,6 +911,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O @Override public void onNewIntent(Intent newIntent) { setIntent(newIntent); + mStateSaved = false; displayFragment(newIntent); @@ -1218,6 +1219,11 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O @Override public void onCallNumberDirectly(String phoneNumber, boolean isVideoCall) { + if (phoneNumber == null) { + // Invalid phone number, but let the call go through so that InCallUI can show + // an error message. + phoneNumber = ""; + } Intent intent = isVideoCall ? IntentUtil.getVideoCallIntent(phoneNumber, getCallOrigin()) : IntentUtil.getCallIntent(phoneNumber, getCallOrigin()); |