From b60cb7394b92b87623a883f92b8f71c93ad3bc74 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 3 Jul 2012 18:22:59 -0700 Subject: [PATCH] IDEMPIERE-322 Process param YesNo with Display Logic => NPE --- .../src/org/compiere/apps/ProcessParameterPanel.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/ProcessParameterPanel.java b/org.adempiere.ui.swing/src/org/compiere/apps/ProcessParameterPanel.java index c61b110224..4bbfde4afd 100644 --- a/org.adempiere.ui.swing/src/org/compiere/apps/ProcessParameterPanel.java +++ b/org.adempiere.ui.swing/src/org/compiere/apps/ProcessParameterPanel.java @@ -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(""); }