IDEMPIERE-5520 Navigation between Tabs leave Detached DOM objects (Leak) (#1650)
- Fix NPE
This commit is contained in:
parent
29f59e645f
commit
6d9ae6e50e
|
@ -346,6 +346,7 @@ public abstract class TabbedDesktop extends AbstractDesktop {
|
|||
if (windowNo == (Integer)att)
|
||||
{
|
||||
Tab tab = panel.getLinkedTab();
|
||||
if (tab != null) {
|
||||
panel.getLinkedTab().onClose();
|
||||
if (tab.getParent() == null)
|
||||
{
|
||||
|
@ -356,6 +357,9 @@ public abstract class TabbedDesktop extends AbstractDesktop {
|
|||
{
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue