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

Commit 842f9327 authored by Martijn Coenen's avatar Martijn Coenen Committed by gitbuildkicker
Browse files

Fix nativeProcs being null.

dumpStackTraces originally checked this. This only happens when a silent
ANR is triggerred on a process name not in NATIVE_STACKS_OF_INTEREST.

Bug: 36414311
Bug: 36652737
Test: manual
Change-Id: I24402fb2ef2e08482f866dc1086ce83c1365d7ec
(cherry picked from commit 94a0dcdd)
parent 5269a116
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -870,7 +870,7 @@ class AppErrors {
            nativeProcs = NATIVE_STACKS_OF_INTEREST;
        }

        int[] pids = Process.getPidsForCommands(nativeProcs);
        int[] pids = nativeProcs == null ? null : Process.getPidsForCommands(nativeProcs);
        ArrayList<Integer> nativePids = null;

        if (pids != null) {