Merge "Fix NPE in PanelFragment" am: 06cafcd733

Change-Id: Ia08ab086c610de141b4cadd2ae097b596351e46e
This commit is contained in:
Automerger Merge Worker
2020-03-02 11:37:36 +00:00

View File

@@ -144,8 +144,13 @@ public class PanelFragment extends Fragment {
private void createPanelContent() {
final FragmentActivity activity = getActivity();
if (activity == null) {
return;
}
if (mLayoutView == null) {
activity.finish();
return;
}
mPanelSlices = mLayoutView.findViewById(R.id.panel_parent_layout);
@@ -172,6 +177,7 @@ public class PanelFragment extends Fragment {
if (mPanel == null) {
activity.finish();
return;
}
mMetricsProvider = FeatureFactory.getFactory(activity).getMetricsFeatureProvider();