Revert "Fix NPE for invalid target exception"

This reverts commit d4fda02dd5.

Change-Id: I73341dc41c7effaa3209107b4e85503b17e2c826
This commit is contained in:
Doris Liu
2016-02-04 20:02:52 +00:00
parent d4fda02dd5
commit 3aaff80f32

View File

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