From 2583fb48b8b3614543c973755133470e5d3d3364 Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Tue, 7 Jun 2022 22:45:47 -0700 Subject: [PATCH] Patch npe in TaskbarAllAppsController b/234617317#comment3 Bug: 234617317 Test: manual Change-Id: I7cff0df86db4fdf58b33240594784598950f1a88 --- .../launcher3/taskbar/allapps/TaskbarAllAppsController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsController.java b/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsController.java index 6fd98db19a..c56ac5b3d0 100644 --- a/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsController.java +++ b/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsController.java @@ -171,8 +171,8 @@ public final class TaskbarAllAppsController { * This method should be called after an exit animation finishes, if applicable. */ void maybeCloseWindow() { - if (AbstractFloatingView.getOpenView(mAllAppsContext, TYPE_ALL) != null - || mAllAppsContext.getDragController().isSystemDragInProgress()) { + if (mAllAppsContext != null && (AbstractFloatingView.hasOpenView(mAllAppsContext, TYPE_ALL) + || mAllAppsContext.getDragController().isSystemDragInProgress())) { return; } mProxyView.close(false);