Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48191afa authored by Jay Aliomer's avatar Jay Aliomer
Browse files

Integer to int causes null exception

Fixes: b/183921888
Test: manually follow bug steps
Change-Id: I7763f4108ced922eba031b5b405774bfe112549a
parent 46e3d1a3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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();