aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-04-13 11:41:47 +0300
committerArtur Signell <artur@vaadin.com>2012-04-16 13:28:29 +0300
commit057c6ef21c739535588a70344eb20a9040855d06 (patch)
tree4d0163e154429d3713cf94c4c844e9a4bb682b28
parent4155cb0d2c9e9ebe27d726ac38227ff7f0648bd7 (diff)
downloadvaadin-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.java12
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);
+ }
}
}