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

Commit 764c7a97 authored by Pascal Mütschard's avatar Pascal Mütschard
Browse files

Fix issue in IJM where view becomes invalid.

Sometimes, by the the time we start the jank tracker, the view,
which was validated at CUJ begin by the configuration, becomes
invalid, which would cause an NPE later on. If the view is invalid
at frame tracker start, abort the CUJ.

Bug: b/320527356
Test: manual
Flag: EXEMPT bug fix
Change-Id: I8959263a9c344b773912b96d77108a2e56139db6
parent e01576ea
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -396,6 +396,9 @@ public class InteractionJankMonitor {
        int cujType = conf.mCujType;
        if (!shouldMonitor()) {
            return false;
        } else if (!conf.hasValidView()) {
            Log.w(TAG, "The view has since become invalid, aborting the CUJ.");
            return false;
        }

        RunningTracker tracker = putTrackerIfNoCurrent(cujType, () ->