Checking mRecentsAnimationController for null-ness

Now that we screenshot asynchronously.

Test: presubmit
Bug: 175708969
Change-Id: I27661b7a889661c91e480edb7fb3d536e34d4c68
This commit is contained in:
vadimt
2021-01-19 18:05:12 -08:00
parent 4318289207
commit fa8731489c
@@ -1395,6 +1395,7 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<?>, Q extends
// Update the screenshot of the task
if (mTaskSnapshot == null) {
UI_HELPER_EXECUTOR.execute(() -> {
if (mRecentsAnimationController == null) return;
final ThumbnailData taskSnapshot =
mRecentsAnimationController.screenshotTask(runningTaskId);
MAIN_EXECUTOR.execute(() -> {