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

Commit 73f8820c authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix NPE when trying to add starting window

Container may already have been removed, so protect against that
situation.

Test: Boot device
Change-Id: Ic76d74c6df0801e2a50352a4b04d67b5d216d4fe
Fixes: 34227241
parent a5db0b90
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -85,6 +85,9 @@ public class AppWindowContainerController
        final Configuration mergedOverrideConfiguration;

        synchronized (mWindowMap) {
            if (mContainer == null) {
                return;
            }
            startingData = mContainer.startingData;
            mergedOverrideConfiguration = mContainer.getMergedOverrideConfiguration();
        }
@@ -150,6 +153,9 @@ public class AppWindowContainerController
                    + mContainer + ": startingWindow="
                    + mContainer.startingWindow + " startingView="
                    + mContainer.startingSurface);
            if (mContainer == null) {
                return;
            }
            if (mContainer.startingWindow != null) {
                contents = mContainer.startingSurface;
                token = mContainer.token;