Fix NullPointerException in LauncherBackAnimationController

Bug: 316663312
Flag: NONE
Test: Manual, i.e. verifying that this change does not introduce any unexpected regressions
Change-Id: I749f3944d5fd71e525ce31ff720dd86f1a84277e
This commit is contained in:
Johannes Gallmann
2023-12-20 15:03:04 +01:00
parent 2adff1b7c0
commit 87e2c86829

View File

@@ -284,7 +284,7 @@ public class LauncherBackAnimationController {
mBackInProgress = true;
RemoteAnimationTarget appTarget = backEvent.getDepartingAnimationTarget();
if (appTarget == null) {
if (appTarget == null || appTarget.leash == null || !appTarget.leash.isValid()) {
return;
}