IDEMPIERE-4514 Grid View Layout Bug (#341)

Fix Null Pointer Exception
This commit is contained in:
Carlos Ruiz 2020-10-31 17:12:35 +01:00 committed by GitHub
parent 59bd3ab106
commit c13dcc1d60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

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