summaryrefslogtreecommitdiffstats
path: root/icu/src/main/native/UCharacter.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2010-01-28 13:43:39 -0800
committerElliott Hughes <enh@google.com>2010-01-28 13:43:39 -0800
commitda4f31de172364cfb3a20caed1784fa23b0510ca (patch)
tree8193ad1a81ce51bab2af642fc6cac52c7c7f4c87 /icu/src/main/native/UCharacter.cpp
parent230cc3ea6367b9819b20812026ffe52da873e23a (diff)
downloadlibcore-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/UCharacter.cpp')
-rw-r--r--icu/src/main/native/UCharacter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/icu/src/main/native/UCharacter.cpp b/icu/src/main/native/UCharacter.cpp
index c13b6d3..3fd8151 100644
--- a/icu/src/main/native/UCharacter.cpp
+++ b/icu/src/main/native/UCharacter.cpp
@@ -138,7 +138,7 @@ static jboolean isLowerCaseImpl(JNIEnv*, jclass, jint codePoint) {
static int forNameImpl(JNIEnv* env, jclass, jstring blockName) {
if (blockName == NULL) {
- jniThrowException(env, "java/lang/NullPointerException", NULL);
+ jniThrowNullPointerException(env, NULL);
return -1;
}
const char* bName = env->GetStringUTFChars(blockName, NULL);