< prev index next >

src/java.desktop/unix/native/libawt_xawt/awt/awt_InputMethod.c

Print this page

        

@@ -1327,19 +1327,11 @@
 
     AWT_LOCK();
     /* free the old pX11IMData and set it to null. this also avoids crashing
      * the jvm if the XIM server reappears */
     while (x11InputMethodGRefListHead != NULL) {
-        if (getX11InputMethodData(env,
-                x11InputMethodGRefListHead->inputMethodGRef) == NULL) {
-            /* Clear possible exceptions
-             */
-            if ((*env)->ExceptionOccurred(env)) {
-                (*env)->ExceptionDescribe(env);
-                (*env)->ExceptionClear(env);
-            }
-        }
+        getX11InputMethodData(env, x11InputMethodGRefListHead->inputMethodGRef);
     }
     AWT_UNLOCK();
 }
 
 JNIEXPORT jboolean JNICALL
< prev index next >