From c13dcc1d609986ec1819e90bc6e3c90d3c910ab1 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 31 Oct 2020 17:12:35 +0100 Subject: [PATCH] IDEMPIERE-4514 Grid View Layout Bug (#341) Fix Null Pointer Exception --- .../org/adempiere/webui/adwindow/CompositeADTabbox.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); }