diff options
author | Yorke Lee <yorkelee@google.com> | 2015-05-15 10:52:27 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-05-15 10:52:27 -0700 |
commit | 791b488fb8f835bb7976cb1f839a0b3ccf04132c (patch) | |
tree | f36fa8694396077f5f02a994e821c30bfa86ee3d /src/com/android/dialer/dialpad/DialpadFragment.java | |
parent | a812d28bfdac171e726d6b865e7ea5cfda24d924 (diff) |
Fix potential Dialer NPEs
Fix NPEs encountered during monkey tests
Bug: 21167534
Change-Id: I98b6f675adfd233d3583c363f7daeca1bc14d8b7
Diffstat (limited to 'src/com/android/dialer/dialpad/DialpadFragment.java')
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index a1ba15087..8d27c143b 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -1107,7 +1107,9 @@ public class DialpadFragment extends Fragment } public void clearDialpad() { - mDigits.getText().clear(); + if (mDigits != null) { + mDigits.getText().clear(); + } } private void handleDialButtonClickWithEmptyDigits() { |