Protect against case when suggestions haven't loaded
Change-Id: I7668ed8af3f1808b619f0fdbd77c2f85da98f607 Fixes: 28691636
This commit is contained in:
@@ -142,6 +142,9 @@ public class DashboardSummary extends InstrumentedFragment
|
|||||||
MetricsLogger.hidden(getContext(), c.getMetricsConstant());
|
MetricsLogger.hidden(getContext(), c.getMetricsConstant());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (mAdapter.getSuggestions() == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
for (Tile suggestion : mAdapter.getSuggestions()) {
|
for (Tile suggestion : mAdapter.getSuggestions()) {
|
||||||
MetricsLogger.action(getContext(), MetricsEvent.ACTION_HIDE_SETTINGS_SUGGESTION,
|
MetricsLogger.action(getContext(), MetricsEvent.ACTION_HIDE_SETTINGS_SUGGESTION,
|
||||||
DashboardAdapter.getSuggestionIdentifier(getContext(), suggestion));
|
DashboardAdapter.getSuggestionIdentifier(getContext(), suggestion));
|
||||||
|
Reference in New Issue
Block a user