IDEMPIERE-946: NullPointerException in Payment window > 'ReQuery' image icon on "Invoice Info" window

This commit is contained in:
Deepak Pansheriya 2013-06-04 12:00:08 -05:00
parent 9d848f85c9
commit 6299a01f1d
1 changed files with 2 additions and 2 deletions

View File

@ -281,8 +281,8 @@ ContextMenuListener, IZoomableEditor
//still not in list, reset to zero
if (!getComponent().isSelected(value))
{
if (value instanceof Integer && gridField != null && gridField.getDisplayType() != DisplayType.ID
&& gridTab != null && !gridTab.getTableModel().isImporting()) // for IDs is ok to be out of the list
if (value instanceof Integer && gridField != null && gridField.getDisplayType() != DisplayType.ID &&
(gridTab==null || !gridTab.getTableModel().isImporting())) // for IDs is ok to be out of the list
{
getComponent().setValue(null);
if (curValue == null)