diff options
author | Artur Signell <artur@vaadin.com> | 2012-04-13 11:41:47 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-04-16 13:28:29 +0300 |
commit | 057c6ef21c739535588a70344eb20a9040855d06 (patch) | |
tree | 4d0163e154429d3713cf94c4c844e9a4bb682b28 | |
parent | 4155cb0d2c9e9ebe27d726ac38227ff7f0648bd7 (diff) | |
download | vaadin-framework-057c6ef21c739535588a70344eb20a9040855d06.tar.gz vaadin-framework-057c6ef21c739535588a70344eb20a9040855d06.zip |
Added exception handling for State and Hierarchy events (#4203)
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ApplicationConnection.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java index 5ececb2104..5f5ef71c36 100644 --- a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java +++ b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java @@ -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); + } } } |