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

Commit 0e162185 authored by Wale Ogunwale's avatar Wale Ogunwale
Browse files

Fixed NPE when trying to resize stack with no running activity.

Change-Id: If5b6a1110aa8a615def97c9707364e0cc12f4b39
parent 969f0708
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -2606,9 +2606,8 @@ public final class ActivityStackSupervisor implements DisplayListener {
        }

        final ActivityRecord r = stack.topRunningActivityLocked(null);
        final TaskRecord topTask = r.task;
        if (!topTask.mResizeable) {
            Slog.w(TAG, "resizeStack: top task " + topTask + " not resizeable.");
        if (r != null && !r.task.mResizeable) {
            Slog.w(TAG, "resizeStack: top task " + r.task + " not resizeable.");
            return;
        }