Merge "Fixes NPE in WallpaperData constructor"

This commit is contained in:
Chris Poultney
2023-02-15 05:00:25 +00:00
committed by Android (Google) Code Review

View File

@@ -166,7 +166,9 @@ class WallpaperData {
this.primaryColors = source.primaryColors;
this.mWallpaperDimAmount = source.mWallpaperDimAmount;
this.connection = source.connection;
this.connection.mWallpaper = this;
if (this.connection != null) {
this.connection.mWallpaper = this;
}
}
@Override