From b6dbfd5015b5b2192f48760557a06cadc4bff195 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 14 Feb 2014 20:40:32 +0800 Subject: [PATCH] Trivial fix for process dialog: don't attempt to show status update message if desktop(client browser) is dead. --- .../WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java index 68906a7f70..88c1acb32e 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java @@ -858,7 +858,9 @@ public class ProcessDialog extends Window implements EventListener, IProc @Override public void statusUpdate(String message) { - Executions.schedule(getDesktop(), this, new Event(ON_STATUS_UPDATE, this, message)); + Desktop desktop = getDesktop(); + if (desktop != null && desktop.isAlive()) + Executions.schedule(desktop, this, new Event(ON_STATUS_UPDATE, this, message)); } @Override