From 032109811959885fd347dfadc2b5cac910ac5552 Mon Sep 17 00:00:00 2001 From: Elaine Tan Date: Tue, 11 Feb 2014 11:37:19 +0800 Subject: [PATCH] * IDEMPIERE-1748 NullPointerException in Setup Wizard window * IDEMPIERE-724 Zk: Make iDempiere theme more easily customizable - Added css class to open tasks parent node --- .../src/org/adempiere/webui/apps/form/WSetupWizard.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WSetupWizard.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WSetupWizard.java index e3e1ff9cfe..6edfbbef0f 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WSetupWizard.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WSetupWizard.java @@ -220,9 +220,8 @@ public class WSetupWizard extends SetupWizard implements IFormController, EventL treeitemwf.setOpen(true); addNodes(wfwizard, treeitemwf); - if(allFinished && showColors.isChecked()){ - wizardLabel.setZclass("tree-wsetupwizard-finished-all"); - } + if (showColors.isChecked()) + wizardLabel.setZclass(allFinished ? "tree-wsetupwizard-finished-all" : "tree-wsetupwizard-open-tasks"); treeitemwf.setAttribute("AD_Workflow_ID", wfwizard.getAD_Workflow_ID()); if (prevti != null && prevti.getAttribute("AD_Workflow_ID") != null) { @@ -593,6 +592,9 @@ public class WSetupWizard extends SetupWizard implements IFormController, EventL } // propertyChange private void showItem(Treeitem ti) { + if (ti == null) + return; + if (ti.getAttribute("AD_Workflow_ID") != null) { ti.setOpen(true); // MWorkflow