aboutsummaryrefslogtreecommitdiffstats
path: root/CNativeCode/jnitools.c
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2001-06-18 23:20:46 +0000
committerSven Gothel <[email protected]>2001-06-18 23:20:46 +0000
commitcc7376ee5616743cdd7b7a5c711f054b32ae8e4e (patch)
tree1550b5fd8630667151fe30e74811abb6a45792ea /CNativeCode/jnitools.c
parent8512ae5ab8a75fad8a75aec0b6e04e3fcd1d2c6f (diff)
2.8.0.0 pre-release cvs only
Diffstat (limited to 'CNativeCode/jnitools.c')
-rw-r--r--CNativeCode/jnitools.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/CNativeCode/jnitools.c b/CNativeCode/jnitools.c
index 2e6f282..3c2141e 100644
--- a/CNativeCode/jnitools.c
+++ b/CNativeCode/jnitools.c
@@ -64,6 +64,8 @@ char * LIBAPIENTRY jnitoolsGetJavaString(JNIEnv *env, jstring jstr)
jthrowable exc;
char *result = 0;
+ if(jstr == NULL) return NULL;
+
if(!isinit && init(env)) isinit=1;
hab = (*env)->CallObjectMethod(env, jstr, String_getBytes_ID);