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

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

Merge "Fix a NPE in BatteryStatsImpl" into pi-dev

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