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

Commit 5d3b1315 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 20657

* changes:
  Fix possible NPE when mutating a DrawableContainer
parents 1f9ef9a2 1010ac9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -237,7 +237,7 @@ public class DrawableContainer extends Drawable implements Drawable.Callback {
            final int N = mDrawableContainerState.getChildCount();
            final Drawable[] drawables = mDrawableContainerState.getChildren();
            for (int i = 0; i < N; i++) {
                drawables[i].mutate();
                if (drawables[i] != null) drawables[i].mutate();
            }
            mMutated = true;
        }