Solved NPE in FIC
authorMartin Taal <martin.taal@openbravo.com>
Sun, 16 Jan 2011 21:28:40 +0100
changeset 9840 dedb0498fda1
parent 9839 43b9ea3ec34b
child 9841 696edfbba9d7
Solved NPE in FIC
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
--- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java	Sat Jan 15 16:58:51 2011 +0100
+++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java	Sun Jan 16 21:28:40 2011 +0100
@@ -67,7 +67,7 @@
 public class FormInitializationComponent extends BaseActionHandler {
   private static final Logger log = Logger.getLogger(FormInitializationComponent.class);
 
-  private static final int MAX_CALLOUT_CALLS = 10;
+  private static final int MAX_CALLOUT_CALLS = 50;
 
   // @Override
   protected JSONObject execute(Map<String, Object> parameters, String content) {
@@ -240,14 +240,14 @@
               }
             }
             setRequestContextParameter(field, jsonobject);
-          }
-          // We also set the session value for the column in Edit or SetSession mode
-          if (mode.equals("EDIT") || mode.equals("SETSESSION")) {
-            if (field.getColumn().isStoredInSession() || field.getColumn().isKeyColumn()) {
-              setSessionValue(tab.getWindow().getId() + "|"
-                  + field.getColumn().getDBColumnName().toUpperCase(),
-                  jsonobject.has("value") ? uiDef.formatValueToSQL(jsonobject.get("value")
-                      .toString()) : null);
+            // We also set the session value for the column in Edit or SetSession mode
+            if (mode.equals("EDIT") || mode.equals("SETSESSION")) {
+              if (field.getColumn().isStoredInSession() || field.getColumn().isKeyColumn()) {
+                setSessionValue(tab.getWindow().getId() + "|"
+                    + field.getColumn().getDBColumnName().toUpperCase(),
+                    jsonobject.has("value") ? uiDef.formatValueToSQL(jsonobject.get("value")
+                        .toString()) : null);
+              }
             }
 
           }