Add null check to precent crash in monkey test

Fixes: 133259172
Test: manual
Change-Id: Ib4dd24965fda40a7a917397bf558309e0424bf16
This commit is contained in:
lindatseng
2019-05-22 10:36:50 -07:00
parent b6012f8d62
commit be70aaa6c4
2 changed files with 8 additions and 0 deletions

View File

@@ -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)));