Merge "Fix NPE" into ub-launcher3-master
diff --git a/src/com/android/launcher3/graphics/IconNormalizer.java b/src/com/android/launcher3/graphics/IconNormalizer.java
index 069895a..ce2bca6 100644
--- a/src/com/android/launcher3/graphics/IconNormalizer.java
+++ b/src/com/android/launcher3/graphics/IconNormalizer.java
@@ -220,7 +220,9 @@
@Nullable Path path, @Nullable boolean[] outMaskShape) {
if (Utilities.isAtLeastO() && d instanceof AdaptiveIconDrawable &&
mAdaptiveIconScale != SCALE_NOT_INITIALIZED) {
- outBounds.set(mBounds);
+ if (outBounds != null) {
+ outBounds.set(mBounds);
+ }
return mAdaptiveIconScale;
}
int width = d.getIntrinsicWidth();