Merge "Revert "Fix NPE for invalid target exception""

This commit is contained in:
Doris Liu
2016-02-04 20:03:44 +00:00
committed by Android (Google) Code Review

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