From a70916d6e763ee5c4bc466bae73c30e81bf3b30a Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 23 Nov 2012 11:06:23 -0500 Subject: [PATCH] Avoid repetitive message on eclipse about session inactivated --- .../org/adempiere/webui/dashboard/DashboardRunnable.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DashboardRunnable.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DashboardRunnable.java index eab74678a7..59a464f94e 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DashboardRunnable.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DashboardRunnable.java @@ -88,7 +88,11 @@ public class DashboardRunnable implements Runnable, Serializable boolean isEventThread = Events.inEventListener(); if (!isEventThread) { - ctx = (Properties)template.getDesktop().getSession().getAttribute(SessionContextListener.SESSION_CTX); + try { + ctx = (Properties)template.getDesktop().getSession().getAttribute(SessionContextListener.SESSION_CTX); + } catch (Exception e) { + ctx = null; + } if (ctx == null) return; }