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

Commit 9f55e87f authored by Chris Poultney's avatar Chris Poultney
Browse files

Fixes improbable NPE in WallpaperManagerService dump()

Bug: 274492913
Test: manually verified that dump works with dumpsys
Change-Id: If85bf8051aa95d3e65035ea46d8720ad5e6cc920
parent e88e680d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);