Merge "Protect against case when suggestions haven\'t loaded" into nyc-dev am: 76f95e82b8

am: f241ae5fcf

* commit 'f241ae5fcfdefd3b5ddb294c41f84c7deb6ef836':
  Protect against case when suggestions haven't loaded

Change-Id: I784e069f98d348a1897891b61c1053af63b18dae
This commit is contained in:
Jason Monk
2016-05-11 15:18:45 +00:00
committed by android-build-merger

View File

@@ -132,6 +132,9 @@ public class DashboardSummary extends InstrumentedFragment
MetricsLogger.hidden(getContext(), c.getMetricsConstant());
}
}
if (mAdapter.getSuggestions() == null) {
return;
}
for (Tile suggestion : mAdapter.getSuggestions()) {
MetricsLogger.action(getContext(), MetricsEvent.ACTION_HIDE_SETTINGS_SUGGESTION,
DashboardAdapter.getSuggestionIdentifier(getContext(), suggestion));