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

Commit 9bb61af6 authored by Vladimir Komsiyski's avatar Vladimir Komsiyski
Browse files

Fix potential NPE in startHomeOnDisplay

Change-Id: Ie20da053d88d3aa935f07f46a01750c323f0c197
Fix: 372265882
Test: presubmit
Flag: EXEMPT trivial bugfix
parent 81fa7414
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1407,7 +1407,7 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
            displayId = rootTask != null ? rootTask.getDisplayId() : DEFAULT_DISPLAY;
        }

        final DisplayContent display = getDisplayContent(displayId);
        final DisplayContent display = getDisplayContentOrCreate(displayId);
        return display.reduceOnAllTaskDisplayAreas((taskDisplayArea, result) ->
                        result | startHomeOnTaskDisplayArea(userId, reason, taskDisplayArea,
                                allowInstrumenting, fromHomeKey),