diff options
author | Jay Shrauner <shrauner@google.com> | 2015-05-13 12:50:47 -0700 |
---|---|---|
committer | Jay Shrauner <shrauner@google.com> | 2015-05-13 12:50:47 -0700 |
commit | fefc60eeff8be1043d6541518b760e110a02501d (patch) | |
tree | 9f7699a3bccdc13fc7e4c677ea25df26bab9e34c /src | |
parent | 91dc991cecfd283b2cf58dbe45dc7c6e6c58ed39 (diff) |
Fix NPE in keyPressed when getView is null
Bug:21120753
Change-Id: I2e82e4a8e7b8226a2d74753d37ff36d1d3ab367e
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index 6a66eb388..2ac1a5c6d 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -722,7 +722,7 @@ public class DialpadFragment extends Fragment } private void keyPressed(int keyCode) { - if (getView().getTranslationY() != 0) { + if (getView() == null || getView().getTranslationY() != 0) { return; } switch (keyCode) { |