diff options
author | Elliott Hughes <enh@google.com> | 2010-01-28 13:43:39 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2010-01-28 13:43:39 -0800 |
commit | da4f31de172364cfb3a20caed1784fa23b0510ca (patch) | |
tree | 8193ad1a81ce51bab2af642fc6cac52c7c7f4c87 /icu/src/main/native/ErrorCode.cpp | |
parent | 230cc3ea6367b9819b20812026ffe52da873e23a (diff) | |
download | libcore-da4f31de172364cfb3a20caed1784fa23b0510ca.zip libcore-da4f31de172364cfb3a20caed1784fa23b0510ca.tar.gz libcore-da4f31de172364cfb3a20caed1784fa23b0510ca.tar.bz2 |
Fix jniThrowRuntimeException for C callers, add jniThrowNullPointerException.
...and switch all NPE throwers over to the helper.
Diffstat (limited to 'icu/src/main/native/ErrorCode.cpp')
-rw-r--r-- | icu/src/main/native/ErrorCode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/icu/src/main/native/ErrorCode.cpp b/icu/src/main/native/ErrorCode.cpp index 94c4239..a9d0691 100644 --- a/icu/src/main/native/ErrorCode.cpp +++ b/icu/src/main/native/ErrorCode.cpp @@ -34,6 +34,6 @@ UBool icu4jni_error(JNIEnv *env, UErrorCode errorCode) case U_UNSUPPORTED_ERROR: return jniThrowException(env, "java/lang/UnsupportedOperationException", message); default: - return jniThrowException(env, "java/lang/RuntimeException", message); + return jniThrowRuntimeException(env, message); } } |