From 057c6ef21c739535588a70344eb20a9040855d06 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 13 Apr 2012 11:41:47 +0300 Subject: [PATCH] Added exception handling for State and Hierarchy events (#4203) --- .../terminal/gwt/client/ApplicationConnection.java | 12 ++++++++++-- 1 file 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); + } } } -- 2.39.5