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

Commit 7818803e authored by Filip Gruszczynski's avatar Filip Gruszczynski
Browse files

Prevent NPE in layer assignment, not all windows have a stack.

Bug: 26285039
Change-Id: Ie7099a4ec3f1195295308755821c603975bff183
parent 96d5c8a9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -159,6 +159,9 @@ public class WindowLayersController {
            mDockDivider = w;
        } else {
            final TaskStack stack = w.getStack();
            if (stack == null) {
                return;
            }
            if (stack.mStackId == StackId.PINNED_STACK_ID) {
                mPinnedWindow = w;
            } else if (stack.mStackId == StackId.DOCKED_STACK_ID) {