Revert "Fix NPE for invalid target exception"
This reverts commit d4fda02dd5.
Change-Id: I73341dc41c7effaa3209107b4e85503b17e2c826
This commit is contained in:
@@ -852,8 +852,8 @@ public class AnimatedVectorDrawable extends Drawable implements Animatable2 {
|
||||
(VectorDrawable.VectorDrawableState) target, startTime);
|
||||
} else {
|
||||
// Should never get here
|
||||
throw new UnsupportedOperationException("Target should be group, path or vector. " +
|
||||
target == null ? "Null target" : target.getClass() + " is not supported");
|
||||
throw new UnsupportedOperationException("Target should be either VGroup, VPath, " +
|
||||
"or ConstantState, " + target.getClass() + " is not supported");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user