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

Commit d45d2877 authored by Kunal Malhotra's avatar Kunal Malhotra Committed by Android (Google) Code Review
Browse files

Merge "Fixing possible NullPointerException" into udc-dev

parents bc1c1785 c2c86d0b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -316,6 +316,10 @@ public class ForegroundServiceTypeLoggerModule {
        // then we should care, otherwise we assume
        // it's not related to any FGS
        UidState uidState = mUids.get(uid);
        if (uidState == null) {
            Log.w(TAG, "API event end called before start!");
            return -1;
        }
        if (uidState.mOpenWithFgsCount.contains(apiType)) {
            // are there any calls that started with an FGS?
            if (uidState.mOpenWithFgsCount.get(apiType) != 0) {