Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e077af2 authored by Jay Shrauner's avatar Jay Shrauner
Browse files

Fix NPE when activity is null

Bug:17360566
Change-Id: I20f3b0843bc8766ea1ded91b30c2662ea08cf7df
parent 3186c372
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;