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

Commit b575e4df authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change I4a943184 into eclair

* changes:
  Avoid trying to throw multiple exceptions at once.
parents 22dad592 4a943184
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -367,10 +367,12 @@ static int get_char(JNIEnv* env, const jchar *s, int spos, int mul,
    if (c >= '0' && c <= '9') {
        return (c - '0') * mul;
    } else {
        if (!*thrown) {
            char msg[100];
            sprintf(msg, "Parse error at pos=%d", spos);
            jniThrowException(env, "android/util/TimeFormatException", msg);
            *thrown = true;
        }
        return 0;
    }
}