Fix JAVA_CRASH NullPointerException in BatteryUsageDataLoader.
Bug: 301362376 Fix: 301362376 Test: manual (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:764337bd809a38c215800b30d84b843ad414537b) Merged-In: I75060fc3d1989522f58cae593b1c1f4063dbd6e5 Change-Id: I75060fc3d1989522f58cae593b1c1f4063dbd6e5
This commit is contained in:
committed by
Android Build Coastguard Worker
parent
8416b22496
commit
0eef0fd2b1
@@ -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);
|
||||
|
Reference in New Issue
Block a user