< prev index next >

modules/javafx.graphics/src/main/java/com/sun/glass/ui/Application.java

Print this page

        

@@ -534,13 +534,14 @@
         checkEventThread();
 
         if (nestedEventLoopCounter == 0) {
             throw new IllegalStateException("Not in a nested event loop");
         }
-
+        if(GetApplication()!=null) {
         GetApplication()._leaveNestedEventLoop(retValue);
     }
+    }
 
     public static boolean isNestedLoopRunning() {
         checkEventThread();
         return nestedEventLoopCounter > 0;
     }
< prev index next >