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 fc3befdbb9..9f06c6ae3a 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 @@ -920,9 +920,11 @@ public class CompositeADTabbox extends AbstractADTabbox } if (!tabPanel.isVisible()) { tabPanel.setVisible(true); - Executions.schedule(tabPanel.getDesktop(), e -> { - invalidateTabPanel(tabPanel); - }, new Event("onPostActivateDetail", tabPanel)); + if (tabPanel.getDesktop() != null) { + Executions.schedule(tabPanel.getDesktop(), e -> { + invalidateTabPanel(tabPanel); + }, new Event("onPostActivateDetail", tabPanel)); + } } else { invalidateTabPanel(tabPanel); }