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

Commit 98e3ed4e authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Fix NPE in PanelFragment" am: 06cafcd7

Change-Id: Ia08ab086c610de141b4cadd2ae097b596351e46e
parents 7cda6b42 06cafcd7
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -144,8 +144,13 @@ public class PanelFragment extends Fragment {


    private void createPanelContent() {
    private void createPanelContent() {
        final FragmentActivity activity = getActivity();
        final FragmentActivity activity = getActivity();
        if (activity == null) {
            return;
        }

        if (mLayoutView == null) {
        if (mLayoutView == null) {
            activity.finish();
            activity.finish();
            return;
        }
        }


        mPanelSlices = mLayoutView.findViewById(R.id.panel_parent_layout);
        mPanelSlices = mLayoutView.findViewById(R.id.panel_parent_layout);
@@ -172,6 +177,7 @@ public class PanelFragment extends Fragment {


        if (mPanel == null) {
        if (mPanel == null) {
            activity.finish();
            activity.finish();
            return;
        }
        }


        mMetricsProvider = FeatureFactory.getFactory(activity).getMetricsFeatureProvider();
        mMetricsProvider = FeatureFactory.getFactory(activity).getMetricsFeatureProvider();