Merge "Fix NPE when recents animation controller is null" into ub-launcher3-rvc-dev

This commit is contained in:
TreeHugger Robot
2020-05-26 18:48:42 +00:00
committed by Android (Google) Code Review
@@ -245,7 +245,9 @@ public abstract class BaseSwipeUpHandler<T extends StatefulActivity<?>, Q extend
protected void onRestartLastAppearedTask() {
// Finish the controller here, since we won't get onTaskAppeared() for a task that already
// appeared.
mRecentsAnimationController.finish(false, null);
if (mRecentsAnimationController != null) {
mRecentsAnimationController.finish(false, null);
}
}
/**