commit | 0a1a5167be26d363d4e27bdc7b816f425b7b4e66 | [log] [tgz] |
---|---|---|
author | Doris Liu <tianliu@google.com> | Thu Apr 07 15:03:11 2016 -0700 |
committer | Doris Liu <tianliu@google.com> | Fri Apr 08 18:01:54 2016 +0000 |
tree | 00758e4ff0d4c259c926776319cf097ab7c09d5f | |
parent | b6e1dafe78b2875ebe1837508e28c8dce2693b19 [diff] [blame] |
Improve error logging for parsing failures Bug: 27043594 Change-Id: I901b65f734c49444a78e0714e007e15e2340ab9d
diff --git a/core/jni/android_graphics_drawable_VectorDrawable.cpp b/core/jni/android_graphics_drawable_VectorDrawable.cpp index b04293e..e5c4a2d 100644 --- a/core/jni/android_graphics_drawable_VectorDrawable.cpp +++ b/core/jni/android_graphics_drawable_VectorDrawable.cpp
@@ -176,6 +176,9 @@ PathParser::ParseResult result; PathData data; PathParser::getPathDataFromString(&data, &result, pathString, stringLength); + if (result.failureOccurred) { + doThrowIAE(env, result.failureMessage.c_str()); + } path->mutateStagingProperties()->setData(data); env->ReleaseStringUTFChars(inputStr, pathString); }