IDEMPIERE-5682 - Closing Browser Tab while Report Viewer is Opened causes NPE (#1793)

This commit is contained in:
Peter Takács 2023-04-20 15:24:49 +02:00 committed by GitHub
parent 1a6ca9a7c3
commit d954b926a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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();