Trivial fix for process dialog: don't attempt to show status update message if desktop(client browser) is dead.

This commit is contained in:
Heng Sin Low 2014-02-14 20:40:32 +08:00
parent 7d32b0de0f
commit b6dbfd5015
1 changed files with 3 additions and 1 deletions

View File

@ -858,7 +858,9 @@ public class ProcessDialog extends Window implements EventListener<Event>, 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