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

Commit 97b2b749 authored by Wale Ogunwale's avatar Wale Ogunwale
Browse files

Fixed NPE in ProcessRecord.appNotResponding

Change-Id: Iaa779002c5b00d0bd6a0acad141ce5055c7b5612
Fixes: 117911958
Test: N/A
parent 36994695
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1353,9 +1353,10 @@ final class ProcessRecord implements WindowProcessListener {
                isInterestingToUserLocked()
                        ? StatsLog.ANROCCURRED__FOREGROUND_STATE__FOREGROUND
                        : StatsLog.ANROCCURRED__FOREGROUND_STATE__BACKGROUND);
        final ProcessRecord parentPr = parentProcess != null
                ? (ProcessRecord) parentProcess.mOwner : null;
        mService.addErrorToDropBox("anr", this, processName, activityShortComponentName,
                parentShortComponentName, (ProcessRecord) parentProcess.mOwner, annotation,
                cpuInfo, tracesFile, null);
                parentShortComponentName, parentPr, annotation, cpuInfo, tracesFile, null);

        if (mService.mActivityTaskManager.mController != null) {
            try {