Merge "Fix NPE for stability tests" into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
329e5b159a
@@ -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);
|
||||
|
Reference in New Issue
Block a user