< prev index next >

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

Print this page

        

@@ -77,12 +77,12 @@
             filename);
 }
 
 static void quit(JNIEnv * env, jobject jpeer, gboolean isSignalHandler)
 {
-    jthrowable pendingException;
-    if (pendingException = (*env)->ExceptionOccurred(env)) {
+    jthrowable pendingException = (*env)->ExceptionOccurred(env);
+    if (pendingException != NULL) {
          (*env)->ExceptionClear(env);
     }
 
     GtkWidget * dialog = (GtkWidget*)jlong_to_ptr(
             (*env)->GetLongField(env, jpeer, widgetFieldID));
< prev index next >