diff options
Diffstat (limited to 'make/config/nativewindow')
-rwxr-xr-x | make/config/nativewindow/x11-CustomCCode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/make/config/nativewindow/x11-CustomCCode.c b/make/config/nativewindow/x11-CustomCCode.c index e24e0cd1c..cb5ab8ced 100755 --- a/make/config/nativewindow/x11-CustomCCode.c +++ b/make/config/nativewindow/x11-CustomCCode.c @@ -94,9 +94,11 @@ static jmethodID cstrInternalBufferUtil = NULL; static jclass clazzByteBuffer = NULL; static void _initClazzAccess(JNIEnv *env) { + jclass c; + if(NULL!=cstrInternalBufferUtil) return ; - jclass c = (*env)->FindClass(env, clazzNameInternalBufferUtil); + c = (*env)->FindClass(env, clazzNameInternalBufferUtil); if(NULL==c) { fprintf(stderr, "FatalError: Java_com_sun_nativewindow_impl_x11_X11Lib: can't find %s\n", clazzNameInternalBufferUtil); (*env)->FatalError(env, clazzNameInternalBufferUtil); |