Don't try to register (and invoke!) intentional null callbacks
Change-Id: Iccb9df242a4d6c3aea03be9132f83afb70be0397
This commit is contained in:
@@ -1105,7 +1105,9 @@ public class WallpaperManagerService extends IWallpaperManager.Stub {
|
||||
outParams.putInt("width", wallpaper.width);
|
||||
outParams.putInt("height", wallpaper.height);
|
||||
}
|
||||
wallpaper.callbacks.register(cb);
|
||||
if (cb != null) {
|
||||
wallpaper.callbacks.register(cb);
|
||||
}
|
||||
if (!wallpaper.cropFile.exists()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user