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

Commit 6c397788 authored by Dmitri Plotnikov's avatar Dmitri Plotnikov
Browse files

Fix NPE in SensorPowerStatsProcessor

Bug: 355879613
Test: atest PowerStatsTests
Flag: EXEMPT bugfix
Change-Id: Id0228b3000378017cde760a96e0b5d716221c474
parent 290deba7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -151,7 +151,8 @@ public class SensorPowerStatsProcessor extends PowerStatsProcessor {
            return;
        }

        if (item.eventTag == null || !item.eventTag.string.startsWith(SENSOR_EVENT_TAG_PREFIX)) {
        if (item.eventTag == null || item.eventTag.string == null
                || !item.eventTag.string.startsWith(SENSOR_EVENT_TAG_PREFIX)) {
            return;
        }