Java crash on RecentsView.isTaskViewVisible method

Bug: 316567614
Flag: NONE
Test: manual

Change-Id: I8e7a47a06a94ce0d9eb5921020cb19097873e8c4
This commit is contained in:
Sergey Pinkevich
2023-12-18 18:38:09 +00:00
parent 78611ea4ca
commit c7dcb95b4c

View File

@@ -667,8 +667,10 @@ public class SplitSelectStateController {
MAIN_EXECUTOR.execute(() -> {
// Only animate from taskView if it's already visible
boolean shouldLaunchFromTaskView = mLaunchingTaskView != null &&
mLaunchingTaskView.getRecentsView().isTaskViewVisible(mLaunchingTaskView);
boolean shouldLaunchFromTaskView = mLaunchingTaskView != null
&& mLaunchingTaskView.getRecentsView() != null
&& mLaunchingTaskView.getRecentsView().isTaskViewVisible(
mLaunchingTaskView);
mSplitAnimationController.playSplitLaunchAnimation(
shouldLaunchFromTaskView ? mLaunchingTaskView : null,
mLaunchingIconView,