Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4fda02d authored by Doris Liu's avatar Doris Liu
Browse files

Fix NPE for invalid target exception

Change-Id: I57b319fae617792351c6ec9872c3b73cd25dc4e5
parent 0eef10e5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 either VGroup, VPath, " +
                        "or ConstantState, " + target.getClass() + " is not supported");
                throw new UnsupportedOperationException("Target should be group, path or vector. " +
                        target == null ? "Null target" : target.getClass() + " is not supported");
            }
        }