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

Commit 7cac3f9f authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix JAVA_CRASH NullPointerException in BatteryUsageDataLoader." into udc-qpr-dev

parents 620ac5ce 764337bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ public final class BatteryUsageDataLoader {
                    DatabaseUtils.sendBatteryUsageSlotData(context,
                            ConvertUtils.convertToBatteryUsageSlotList(batteryDiffDataMap));
                    if (batteryDiffDataMap.values().stream().anyMatch(data ->
                            (!data.getAppDiffEntryList().isEmpty()
                            data != null && (!data.getAppDiffEntryList().isEmpty()
                                    || !data.getSystemDiffEntryList().isEmpty()))) {
                        FeatureFactory.getFactory(context).getPowerUsageFeatureProvider(context)
                                .detectSettingsAnomaly(context, /* displayDrain= */ 0);