[view] prevent NPE when generating view for param windows
authorAsier Lostalé <asier.lostale@openbravo.com>
Fri, 03 Aug 2018 16:06:26 +0200
changeset 35064 293e7b1d09b5
parent 35063 7501cdfcf9c2
child 35065 81d914aee0e4
[view] prevent NPE when generating view for param windows
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/ApplicationDictionaryCachedStructures.java
--- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/ApplicationDictionaryCachedStructures.java	Fri Aug 03 13:44:05 2018 +0200
+++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/ApplicationDictionaryCachedStructures.java	Fri Aug 03 16:06:26 2018 +0200
@@ -204,8 +204,10 @@
       }
 
       Window window = OBDal.getInstance().get(Window.class, windowId);
-      for (Tab tab : window.getADTabList()) {
-        initializeTab(tab);
+      if (window != null) {
+        for (Tab tab : window.getADTabList()) {
+          initializeTab(tab);
+        }
       }
 
       synchronized (initializedWindows) {