Fixes improbable NPE in WallpaperManagerService dump()

Bug: 274492913
Test: manually verified that dump works with dumpsys
Change-Id: If85bf8051aa95d3e65035ea46d8720ad5e6cc920
This commit is contained in:
Chris Poultney
2023-03-20 20:43:29 +00:00
parent e88e680d70
commit 9f55e87f09

View File

@@ -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);