* IDEMPIERE-1748 NullPointerException in Setup Wizard window

* IDEMPIERE-724 Zk: Make iDempiere theme more easily customizable - Added css class to open tasks parent node
This commit is contained in:
Elaine Tan 2014-02-11 11:37:19 +08:00
parent 7e7317c661
commit 0321098119
1 changed files with 5 additions and 3 deletions

View File

@ -220,9 +220,8 @@ public class WSetupWizard extends SetupWizard implements IFormController, EventL
treeitemwf.setOpen(true); treeitemwf.setOpen(true);
addNodes(wfwizard, treeitemwf); addNodes(wfwizard, treeitemwf);
if(allFinished && showColors.isChecked()){ if (showColors.isChecked())
wizardLabel.setZclass("tree-wsetupwizard-finished-all"); wizardLabel.setZclass(allFinished ? "tree-wsetupwizard-finished-all" : "tree-wsetupwizard-open-tasks");
}
treeitemwf.setAttribute("AD_Workflow_ID", wfwizard.getAD_Workflow_ID()); treeitemwf.setAttribute("AD_Workflow_ID", wfwizard.getAD_Workflow_ID());
if (prevti != null && prevti.getAttribute("AD_Workflow_ID") != null) { if (prevti != null && prevti.getAttribute("AD_Workflow_ID") != null) {
@ -593,6 +592,9 @@ public class WSetupWizard extends SetupWizard implements IFormController, EventL
} // propertyChange } // propertyChange
private void showItem(Treeitem ti) { private void showItem(Treeitem ti) {
if (ti == null)
return;
if (ti.getAttribute("AD_Workflow_ID") != null) { if (ti.getAttribute("AD_Workflow_ID") != null) {
ti.setOpen(true); ti.setOpen(true);
// MWorkflow // MWorkflow