From 294f4f87edd04ce77b72de527a730ccd334a955d Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Wed, 13 Feb 2008 06:45:41 +0000 Subject: [PATCH] [ 1892439 ] Callout not invoke for changes to existing ASI - previous commit introduce potential NPE --- client/src/org/compiere/grid/ed/VPAttribute.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/src/org/compiere/grid/ed/VPAttribute.java b/client/src/org/compiere/grid/ed/VPAttribute.java index 44a38aad61..e44c75ca00 100644 --- a/client/src/org/compiere/grid/ed/VPAttribute.java +++ b/client/src/org/compiere/grid/ed/VPAttribute.java @@ -405,8 +405,11 @@ public class VPAttribute extends JComponent { log.log(Level.SEVERE, "", pve); } - if (M_AttributeSetInstance_ID == oldValue) - m_GridTab.processFieldChange(m_GridField); // fire value changed + if (M_AttributeSetInstance_ID == oldValue && m_GridTab != null && m_GridField != null) + { + // force Change - user does not realize that embedded object is already saved. + m_GridTab.processFieldChange(m_GridField); + } } // change m_button.setEnabled(true); requestFocus();