From 06626f6674c86d53b0d9ba8c335474f88acf0583 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 13 Dec 2016 18:44:07 +0100 Subject: [PATCH] IDEMPIERE-950 - detected a NPE when zooming from Trial Report to Account Elemen window --- .../WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java index d40eeaa6bc..cee0191f0f 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java @@ -1274,7 +1274,7 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer boolean refresh=true; Treeitem item = treePanel.getTree().getSelectedItem(); SimpleTreeModel model = (SimpleTreeModel)(TreeModel) treePanel.getTree().getModel(); - if (item != null) + if (item != null && item.getValue() != null) { @SuppressWarnings("unchecked") MTreeNode treeNode = ((DefaultTreeNode) item.getValue()).getData();