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

Commit 5be6eedf authored by Jack Palevich's avatar Jack Palevich Committed by Android Git Automerger
Browse files

am b575e4df: Merge change I4a943184 into eclair

Merge commit 'b575e4df' into eclair-mr2

* commit 'b575e4df':
  Avoid trying to throw multiple exceptions at once.
parents a7bbedca b575e4df
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;
    }
}