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

Commit af0ea315 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

AM: Fix NPE in ActivityMetricsLogger

Bug: b/117771642
Test: follow steps in b/117771642
Test: atest CtsActivityManagerDeviceTestCases:ActivityMetricsLoggerTests
Change-Id: Iad3982062aefe7f8329bed6288380474540d0c70
parent d80c72ab
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -230,14 +230,14 @@ class ActivityMetricsLogger {
            launchedActivityLaunchToken = launchedActivity.info.launchToken;
            launchedActivityAppRecordRequiredAbi = launchedActivity.app == null
                    ? null
                    : info.launchedActivity.app.getRequiredAbi();
                    : launchedActivity.app.getRequiredAbi();
            reason = info.reason;
            startingWindowDelayMs = info.startingWindowDelayMs;
            bindApplicationDelayMs = info.bindApplicationDelayMs;
            windowsDrawnDelayMs = info.windowsDrawnDelayMs;
            type = getTransitionType(info);
            processRecord = findProcessForActivity(info.launchedActivity);
            processName = info.launchedActivity.processName;
            processRecord = findProcessForActivity(launchedActivity);
            processName = launchedActivity.processName;
            userId = launchedActivity.userId;
            launchedActivityShortComponentName = launchedActivity.shortComponentName;
            activityRecordIdHashCode = System.identityHashCode(launchedActivity);