IDEMPIERE-322 Process param YesNo with Display Logic => NPE

This commit is contained in:
Carlos Ruiz 2012-07-03 18:22:59 -07:00
parent 16d2cf6d8a
commit b60cb7394b
1 changed files with 4 additions and 2 deletions

View File

@ -458,7 +458,8 @@ public class ProcessParameterPanel extends CPanel implements VetoableChangeListe
if (!comp.isVisible()) {
changedSize = true;
comp.setVisible(true); // visibility
m_labels.get(index).setVisible(true);
if (m_labels.get(index) != null)
m_labels.get(index).setVisible(true);
if (m_mFields.get(index).getVO().isRange)
m_separators.get(index).setText(" - ");
}
@ -470,7 +471,8 @@ public class ProcessParameterPanel extends CPanel implements VetoableChangeListe
if (comp.isVisible()) {
changedSize = true;
comp.setVisible(false);
m_labels.get(index).setVisible(false);
if (m_labels.get(index) != null)
m_labels.get(index).setVisible(false);
if (m_mFields.get(index).getVO().isRange)
m_separators.get(index).setText("");
}