From 5a41941d5581b7e06a5b44ac370153376173076e Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 6 Nov 2012 17:44:41 +0800 Subject: [PATCH] Attemp to fixed browser refresh issue. --- .../src/org/adempiere/webui/AdempiereWebUI.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/AdempiereWebUI.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/AdempiereWebUI.java index 362170ccc3..b79e64c3da 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/AdempiereWebUI.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/AdempiereWebUI.java @@ -249,9 +249,13 @@ public class AdempiereWebUI extends Window implements EventListener, IWeb Object[] objects = new Object[0]; objects = collection.toArray(objects); for(Object obj : objects) { - if (obj instanceof Component) { - ((Component)obj).detach(); - rootComponents.add((Component) obj); + try { + if (obj instanceof Component) { + ((Component)obj).detach(); + rootComponents.add((Component) obj); + } + } catch (Exception e) { +// e.printStackTrace(); } } appDesktop.getComponent().detach();