Add null check to precent crash in monkey test
Fixes: 133259172 Test: manual Change-Id: Ib4dd24965fda40a7a917397bf558309e0424bf16
This commit is contained in:
@@ -170,6 +170,10 @@ public class PanelFragment extends Fragment {
|
||||
.getPanelFeatureProvider()
|
||||
.getPanel(activity, panelType, mediaPackageName);
|
||||
|
||||
if (mPanel == null) {
|
||||
activity.finish();
|
||||
}
|
||||
|
||||
mMetricsProvider = FeatureFactory.getFactory(activity).getMetricsFeatureProvider();
|
||||
|
||||
mPanelSlices.setLayoutManager(new LinearLayoutManager((activity)));
|
||||
|
Reference in New Issue
Block a user