Fixes NPE when running dumpsys wallpaper

Bug: 277077910
Test: code compiles, can't test because can't repro failure state
Change-Id: I67adf550cee51273e94b21479fdfaa3f6f252578
This commit is contained in:
Chris Poultney
2023-04-07 14:28:50 +00:00
parent 4c0e309fa0
commit 98682a6205

View File

@@ -3569,6 +3569,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
private void dumpWallpaper(WallpaperData wallpaper, PrintWriter pw) {
if (wallpaper == null) {
pw.println(" (null entry)");
return;
}
pw.print(" User "); pw.print(wallpaper.userId);
pw.print(": id="); pw.print(wallpaper.wallpaperId);