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