diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java index 2a63e7ede3..ea3dcbb805 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java @@ -580,7 +580,7 @@ public class CompositeADTabbox extends AbstractADTabbox detailPane.setSelectedIndex(0); activateDetailIfVisible(); } else { - if (((ADTabpanel) headerTab).isDetailVisible()) { + if (((ADTabpanel) headerTab).isDetailVisible() && detailPane.getSelectedADTabpanel() != null) { IADTabpanel selectDetailPanel = detailPane.getSelectedADTabpanel(); if (!selectDetailPanel.isVisible()) { selectDetailPanel.setVisible(true);