Merge "Fix a NPE in BatteryStatsImpl"
This commit is contained in:
committed by
Android (Google) Code Review
commit
c984df9763
@@ -4034,7 +4034,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