]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added exception handling for State and Hierarchy events (#4203)
authorArtur Signell <artur@vaadin.com>
Fri, 13 Apr 2012 08:41:47 +0000 (11:41 +0300)
committerArtur Signell <artur@vaadin.com>
Mon, 16 Apr 2012 10:28:29 +0000 (13:28 +0300)
src/com/vaadin/terminal/gwt/client/ApplicationConnection.java

index 5ececb21043aade69b678aa4330f64e7336dd374..5f5ef71c36ffcbd360f948ed99404942371576a1 100644 (file)
@@ -1213,7 +1213,11 @@ public class ApplicationConnection {
                 VConsole.log(" * Sending state change events");
 
                 for (StateChangeEvent sce : pendingStateChangeEvents) {
-                    sce.getConnector().fireEvent(sce);
+                    try {
+                        sce.getConnector().fireEvent(sce);
+                    } catch (final Throwable e) {
+                        VConsole.error(e);
+                    }
                 }
 
             }
@@ -1336,7 +1340,11 @@ public class ApplicationConnection {
 
                 VConsole.log(" * Sending hierarchy change events");
                 for (ConnectorHierarchyChangeEvent event : pendingHierarchyChangeEvents) {
-                    event.getConnector().fireEvent(event);
+                    try {
+                        event.getConnector().fireEvent(event);
+                    } catch (final Throwable e) {
+                        VConsole.error(e);
+                    }
                 }
 
             }