IDEMPIERE-89 NPE on Generate Shipment manual when logged without org
http://jira.idempiere.com/browse/IDEMPIERE-89
This commit is contained in:
parent
737737aebe
commit
c337d5a5e2
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue