< prev index next >

modules/javafx.graphics/src/main/native-glass/mac/GlassView.m

Print this page

        

@@ -148,10 +148,11 @@
     }
 
     if (jViewNotifyInputMethodMac == NULL)
     {
         jclass jMacViewClass = [GlassHelper ClassForName:"com.sun.glass.ui.mac.MacView" withEnv:env];
+        if (!jMacViewClass) return;
         jViewNotifyInputMethodMac = (*env)->GetMethodID(env, jMacViewClass, "notifyInputMethodMac", "(Ljava/lang/String;IIIII)V");
         if ((*env)->ExceptionCheck(env)) return;
     }
 
     if(jViewNotifyInputMethodCandidatePosRequest == NULL)
< prev index next >