changeset 1711:b7a1a890ed1b

RT-23114: No error dialog shows upon Exception in start method of Application in web start mode, which prevents application exit [igor, kcr]
author ngthomas
date Mon, 03 Sep 2012 21:58:46 -0700
parents 7a0b0ca81d0b
children ce8b04d29bba
files javafx-ui-common/src/com/sun/javafx/application/PlatformImpl.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-common/src/com/sun/javafx/application/PlatformImpl.java	Tue Aug 28 16:03:14 2012 -0700
+++ b/javafx-ui-common/src/com/sun/javafx/application/PlatformImpl.java	Mon Sep 03 21:58:46 2012 -0700
@@ -171,11 +171,12 @@
                 @Override public void run() {
                     try {
                         r.run();
-                        pendingRunnables.decrementAndGet();
-                        checkIdle();
                     } catch (Throwable t) {
                         System.err.println("Exception in runnable");
                         t.printStackTrace();
+                    } finally {
+                        pendingRunnables.decrementAndGet();
+                        checkIdle();
                     }
                 }
             });