Fix possible NPE when mutating a DrawableContainer

This commit is contained in:
Romain Guy
2009-08-10 15:11:06 -07:00
parent 07cbacc117
commit 1010ac9b7c

View File

@@ -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;
}