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)
|
if (windowNo == (Integer)att)
|
||||||
{
|
{
|
||||||
Tab tab = panel.getLinkedTab();
|
Tab tab = panel.getLinkedTab();
|
||||||
panel.getLinkedTab().onClose();
|
if (tab != null) {
|
||||||
if (tab.getParent() == null)
|
panel.getLinkedTab().onClose();
|
||||||
{
|
if (tab.getParent() == null)
|
||||||
unregisterWindow(windowNo);
|
{
|
||||||
|
unregisterWindow(windowNo);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue