details:   /erp/devel/pi/rev/a49e48752aa7
changeset: 10798:a49e48752aa7
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Fri Feb 18 17:15:59 2011 +0100
summary:   Increase safeness of callout parsing

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
 |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 97cf9fb63023 -r a49e48752aa7 
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
     Fri Feb 18 17:05:49 2011 +0100
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
     Fri Feb 18 17:15:59 2011 +0100
@@ -826,7 +826,8 @@
                       NativeArray subelements = (NativeArray) element.get(1, 
null);
                       for (int j = 0; j < subelements.getLength(); j++) {
                         NativeArray subelement = (NativeArray) 
subelements.get(j, null);
-                        if (subelement.get(2, 
null).toString().equalsIgnoreCase("True")) {
+                        if (subelement.get(2, null) != null
+                            && subelement.get(2, 
null).toString().equalsIgnoreCase("True")) {
                           String value = subelement.get(0, null).toString();
                           log.debug("Column: " + col.getDBColumnName() + "  
Value: " + value);
                           String oldValue = rq.getRequestParameter(colId);

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to