Merge "Fix a NPE in BatteryStatsImpl" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0587bdd59f
@@ -4021,7 +4021,9 @@ public class BatteryStatsImpl extends BatteryStats {
|
||||
try {
|
||||
IBatteryPropertiesRegistrar registrar = IBatteryPropertiesRegistrar.Stub.asInterface(
|
||||
ServiceManager.getService("batteryproperties"));
|
||||
registrar.scheduleUpdate();
|
||||
if (registrar != null) {
|
||||
registrar.scheduleUpdate();
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
// Ignore.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user