Fixes improbable NPE in WallpaperManagerService dump()
Bug: 274492913 Test: manually verified that dump works with dumpsys Change-Id: If85bf8051aa95d3e65035ea46d8720ad5e6cc920
This commit is contained in:
@@ -3560,6 +3560,9 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
|
||||
}
|
||||
|
||||
private void dumpWallpaper(WallpaperData wallpaper, PrintWriter pw) {
|
||||
if (wallpaper == null) {
|
||||
pw.println(" (null entry)");
|
||||
}
|
||||
pw.print(" User "); pw.print(wallpaper.userId);
|
||||
pw.print(": id="); pw.print(wallpaper.wallpaperId);
|
||||
pw.print(": mWhich="); pw.print(wallpaper.mWhich);
|
||||
|
||||
Reference in New Issue
Block a user