Avoid repetitive message on eclipse about session inactivated

This commit is contained in:
Carlos Ruiz 2012-11-23 11:06:23 -05:00
parent ce09c51372
commit a70916d6e7
1 changed files with 5 additions and 1 deletions

View File

@ -88,7 +88,11 @@ public class DashboardRunnable implements Runnable, Serializable
boolean isEventThread = Events.inEventListener(); boolean isEventThread = Events.inEventListener();
if (!isEventThread) if (!isEventThread)
{ {
try {
ctx = (Properties)template.getDesktop().getSession().getAttribute(SessionContextListener.SESSION_CTX); ctx = (Properties)template.getDesktop().getSession().getAttribute(SessionContextListener.SESSION_CTX);
} catch (Exception e) {
ctx = null;
}
if (ctx == null) if (ctx == null)
return; return;
} }