Merge "Fix NPE for stability tests" into klp-dev

This commit is contained in:
Amith Yamasani
2013-09-09 21:19:02 +00:00
committed by Android (Google) Code Review

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