summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Doris Liu <tianliu@google.com> 2016-02-04 20:02:52 +0000
committer Doris Liu <tianliu@google.com> 2016-02-04 20:02:52 +0000
commit3aaff80f3232aa4d7aba826a5ad9edd95bc45c65 (patch)
treedd19880ed1a0f3a7340765209fd4b955a79228c0
parentd4fda02dd59adff9553dca5647ebb6c023145d5f (diff)
Revert "Fix NPE for invalid target exception"
This reverts commit d4fda02dd59adff9553dca5647ebb6c023145d5f. Change-Id: I73341dc41c7effaa3209107b4e85503b17e2c826
-rw-r--r--graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java b/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
index 21ed7dd0099e..0a3e27e94c06 100644
--- a/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
+++ b/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
@@ -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");
}
}