IDEMPIERE-5682 - Closing Browser Tab while Report Viewer is Opened causes NPE (#1793)
This commit is contained in:
parent
1a6ca9a7c3
commit
d954b926a2
|
@ -358,6 +358,8 @@ public abstract class AbstractDesktop extends AbstractUIPart implements IDesktop
|
|||
* @return List of registered windows
|
||||
*/
|
||||
protected List<Object> getWindows(){
|
||||
if(getComponent() == null)
|
||||
return null;
|
||||
Desktop desktop = getComponent().getDesktop();
|
||||
if (desktop != null) {
|
||||
Session session = desktop.getSession();
|
||||
|
|
Loading…
Reference in New Issue