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;
case BatteryStatsHelper.MSG_REPORT_FULLY_DRAWN:
getActivity().reportFullyDrawn();
Activity activity = getActivity();
if (activity != null) {
activity.reportFullyDrawn();
}
break;
}
super.handleMessage(msg);