Merge commit '5be6eedf3b6979679f46adfb47890005173e8caf' into eclair-mr2-plus-aosp * commit '5be6eedf3b6979679f46adfb47890005173e8caf': Avoid trying to throw multiple exceptions at once.
This commit is contained in:
@@ -367,10 +367,12 @@ static int get_char(JNIEnv* env, const jchar *s, int spos, int mul,
|
|||||||
if (c >= '0' && c <= '9') {
|
if (c >= '0' && c <= '9') {
|
||||||
return (c - '0') * mul;
|
return (c - '0') * mul;
|
||||||
} else {
|
} else {
|
||||||
char msg[100];
|
if (!*thrown) {
|
||||||
sprintf(msg, "Parse error at pos=%d", spos);
|
char msg[100];
|
||||||
jniThrowException(env, "android/util/TimeFormatException", msg);
|
sprintf(msg, "Parse error at pos=%d", spos);
|
||||||
*thrown = true;
|
jniThrowException(env, "android/util/TimeFormatException", msg);
|
||||||
|
*thrown = true;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user