diff options
author | Jay Shrauner <shrauner@google.com> | 2014-09-02 15:01:15 -0700 |
---|---|---|
committer | Jay Shrauner <shrauner@google.com> | 2014-09-02 15:11:31 -0700 |
commit | 4e077af2b9a50a72f4268a795bc744cd4aae5e54 (patch) | |
tree | 63010cf6082911697bfa354180b27d56dbd082df /src/com/android/dialer/dialpad/DialpadFragment.java | |
parent | 3186c3723e143be8c0ab9389118f695ea7c183b4 (diff) |
Fix NPE when activity is null
Bug:17360566
Change-Id: I20f3b0843bc8766ea1ded91b30c2662ea08cf7df
Diffstat (limited to 'src/com/android/dialer/dialpad/DialpadFragment.java')
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index 141a45188..909679191 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -1204,6 +1204,9 @@ public class DialpadFragment extends AnalyticsFragment * of the regular Dialer UI */ private void showDialpadChooser(boolean enabled) { + if (getActivity() == null) { + return; + } // Check if onCreateView() is already called by checking one of View objects. if (!isLayoutReady()) { return; |