IDEMPIERE-454 Easy import / Fix NPE on Invoice Info window introduced by fc38a12c9bd3

This commit is contained in:
Carlos Ruiz 2013-05-21 03:22:34 -05:00
parent c155937c9e
commit d5bc475376
1 changed files with 2 additions and 1 deletions

View File

@ -281,7 +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.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)