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

Commit e86e6d75 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE when trying to add starting window"

parents b237ddcb 73f8820c
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;