Integer to int causes null exception

Fixes: b/183921888
Test: manually follow bug steps
Change-Id: I7763f4108ced922eba031b5b405774bfe112549a
This commit is contained in:
Jay Aliomer
2021-04-01 22:26:54 -04:00
parent 46e3d1a3f1
commit 48191afa57

View File

@@ -1300,8 +1300,9 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
if (callbacks == null) return;
callbacks.broadcast(c -> {
try {
int targetDisplayId =
Integer targetDisplayId =
callbackDisplayIds.get(c.asBinder());
if (targetDisplayId == null) return;
if (targetDisplayId == displayId) c.onColorsChanged(area, colors);
} catch (RemoteException e) {
e.printStackTrace();