am 329e5b15: Merge "Fix NPE for stability tests" into klp-dev

* commit '329e5b159a559791c41fbf401cf1af5063caf1cf':
  Fix NPE for stability tests
This commit is contained in:
Amith Yamasani
2013-09-09 14:25:26 -07:00
committed by Android Git Automerger

View File

@@ -249,7 +249,10 @@ public class PowerUsageSummary extends PreferenceFragment {
} }
break; break;
case BatteryStatsHelper.MSG_REPORT_FULLY_DRAWN: case BatteryStatsHelper.MSG_REPORT_FULLY_DRAWN:
getActivity().reportFullyDrawn(); Activity activity = getActivity();
if (activity != null) {
activity.reportFullyDrawn();
}
break; break;
} }
super.handleMessage(msg); super.handleMessage(msg);