diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WLocationEditor.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WLocationEditor.java index 88943af590..712346e535 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WLocationEditor.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WLocationEditor.java @@ -104,7 +104,7 @@ public class WLocationEditor extends WEditor implements EventListener, Pr else getComponent().setButtonImage(ThemeManager.getThemeResource("images/Location16.png")); - popupMenu = new WEditorPopupMenu(true, false, isShowPreference(), false, false, false, gridField.getLookup()); + popupMenu = new WEditorPopupMenu(true, false, isShowPreference(), false, false, false, gridField != null ? gridField.getLookup() : null); popupMenu.addMenuListener(this); addChangeLogMenu(popupMenu); if (gridField != null)