BF[2548885] search window problem
- null checking needed to handle potential user cancel
This commit is contained in:
parent
93a037edf4
commit
feedcedcb5
|
|
@ -192,9 +192,11 @@ public abstract class TabbedDesktop extends AbstractDesktop {
|
||||||
ADWindow wnd = new ADWindow(Env.getCtx(), AD_Window_ID, query);
|
ADWindow wnd = new ADWindow(Env.getCtx(), AD_Window_ID, query);
|
||||||
|
|
||||||
DesktopTabpanel tabPanel = new DesktopTabpanel();
|
DesktopTabpanel tabPanel = new DesktopTabpanel();
|
||||||
wnd.createPart(tabPanel);
|
if (wnd.createPart(tabPanel) != null)
|
||||||
|
{
|
||||||
windowContainer.insertAfter(windowContainer.getSelectedTab(), tabPanel, wnd.getTitle(), true, true);
|
windowContainer.insertAfter(windowContainer.getSelectedTab(), tabPanel, wnd.getTitle(), true, true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param AD_Window_ID
|
* @param AD_Window_ID
|
||||||
|
|
@ -205,9 +207,11 @@ public abstract class TabbedDesktop extends AbstractDesktop {
|
||||||
ADWindow wnd = new ADWindow(Env.getCtx(), AD_Window_ID, query);
|
ADWindow wnd = new ADWindow(Env.getCtx(), AD_Window_ID, query);
|
||||||
|
|
||||||
DesktopTabpanel tabPanel = new DesktopTabpanel();
|
DesktopTabpanel tabPanel = new DesktopTabpanel();
|
||||||
wnd.createPart(tabPanel);
|
if (wnd.createPart(tabPanel) != null)
|
||||||
|
{
|
||||||
windowContainer.addWindow(tabPanel, wnd.getTitle(), true);
|
windowContainer.addWindow(tabPanel, wnd.getTitle(), true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue