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/NativeRegEx.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/NativeRegEx.cpp')
-rw-r--r-- | icu/src/main/native/NativeRegEx.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/icu/src/main/native/NativeRegEx.cpp b/icu/src/main/native/NativeRegEx.cpp index 387d7e4..7b3cafc 100644 --- a/icu/src/main/native/NativeRegEx.cpp +++ b/icu/src/main/native/NativeRegEx.cpp @@ -54,9 +54,8 @@ static void throwPatternSyntaxException(JNIEnv* env, UErrorCode status, env->Throw(except); } -static void throwRuntimeException(JNIEnv* env, UErrorCode status) -{ - jniThrowException(env, "java/lang/RuntimeException", u_errorName(status)); +static void throwRuntimeException(JNIEnv* env, UErrorCode status) { + jniThrowRuntimeException(env, u_errorName(status)); } static void _close(JNIEnv* env, jclass clazz, RegExData* data) |