Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c984df97 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix a NPE in BatteryStatsImpl"

parents 082c2014 31cdfb40
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4034,7 +4034,9 @@ public class BatteryStatsImpl extends BatteryStats {
        try {
            IBatteryPropertiesRegistrar registrar = IBatteryPropertiesRegistrar.Stub.asInterface(
                    ServiceManager.getService("batteryproperties"));
            if (registrar != null) {
                registrar.scheduleUpdate();
            }
        } catch (RemoteException e) {
            // Ignore.
        }