From 3e83d5ff6724d10703a3f2fc850a168d180bc566 Mon Sep 17 00:00:00 2001 From: Nicolas Micoud <58596990+nmicoud@users.noreply.github.com> Date: Thu, 23 Feb 2023 04:31:47 +0100 Subject: [PATCH] IDEMPIERE-5494 : [WLocationEditor] - Enable Zoom - fix NPE (#1686) --- .../WEB-INF/src/org/adempiere/webui/editor/WLocationEditor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)