modules/graphics/src/main/java/com/sun/javafx/tk/quantum/PaintCollector.java

Print this page

        

@@ -297,11 +297,14 @@
             // now would be a great time to vsync! 
             if (needsHint && !toolkit.hasNativeSystemVsync()) {
                 toolkit.vsyncHint();
             }
 
-            Application.GetApplication().notifyRenderingFinished();
+            Application application = Application.GetApplication();
+            if (application != null) {
+                application.notifyRenderingFinished();
+            }
 
             // If pulse logging is enabled, then we must call renderEnd now
             // that we know that all of the scene's being rendered are finished
             if (PULSE_LOGGING_ENABLED) {
                 PULSE_LOGGER.renderEnd();