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

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

Merge change 5142 into donut

* changes:
  Fix NPE in GradientDrawable constructor
parents eaa89f74 562bf17c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -880,7 +880,9 @@ public class GradientDrawable extends Drawable {
            mShape = state.mShape;
            mGradient = state.mGradient;
            mOrientation = state.mOrientation;
            if (state.mColors != null) {
                mColors = state.mColors.clone();
            }
            if (state.mPositions != null) {
                mPositions = state.mPositions.clone();
            }