Merge "Prevent null pointer exception by return from setBackToLauncherCallback when mBackToLauncherCallback is null" into udc-dev

This commit is contained in:
Sebastián Franco authored and Android (Google) Code Review committed 2023-04-26 16:06:35 +00:00
commit 3538deee10
1 file changed
+1 -1
@@ -967,7 +967,7 @@ public class SystemUiProxy implements ISystemUiProxy {
IRemoteAnimationRunner runner) {
mBackToLauncherCallback = callback;
mBackToLauncherRunner = runner;
if (mBackAnimation == null) {
if (mBackAnimation == null || mBackToLauncherCallback == null) {
return;
}
try {