IDEMPIERE-89 NPE on Generate Shipment manual when logged without org

http://jira.idempiere.com/browse/IDEMPIERE-89
This commit is contained in:
Carlos Ruiz 2011-10-25 01:20:44 -05:00
parent 737737aebe
commit c337d5a5e2
1 changed files with 1 additions and 1 deletions

View File

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