commit | dcd8b5c27292b6549fb02f85e954c1b2f010b35d | [log] [tgz] |
---|---|---|
author | Hyunyoung Song <hyunyoungs@google.com> | Tue Mar 28 11:13:15 2017 -0700 |
committer | Hyunyoung Song <hyunyoungs@google.com> | Tue Mar 28 11:13:15 2017 -0700 |
tree | 4d330640187d698eb9c2f41efb67ad743100bfb7 | |
parent | f5a6ee0bfb26c3e001ff8cae314ef32a100913bc [diff] |
Fix NPE Change-Id: If816a3cafa42f92ec32cd77ba3a3a902201d9ca4
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();