Fixes NPE in WallpaperData constructor

Bug: 253507223
Test: TreeHugger
Change-Id: Ibfa441ac83b20bd0efcc53acd19c81750cb65430
This commit is contained in:
Chris Poultney
2023-02-14 21:57:43 +00:00
parent 62ab6c19b7
commit 22774720c8

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