cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r901335 - /cxf/trunk/api/src/main/java/org/apache/cxf/databinding/AbstractWrapperHelper.java
Date Wed, 20 Jan 2010 19:13:16 GMT
Author: dkulp
Date: Wed Jan 20 19:13:15 2010
New Revision: 901335

URL: http://svn.apache.org/viewvc?rev=901335&view=rev
Log:
[CXF-2627] Add an NPE guard

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/databinding/AbstractWrapperHelper.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/databinding/AbstractWrapperHelper.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/databinding/AbstractWrapperHelper.java?rev=901335&r1=901334&r2=901335&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/databinding/AbstractWrapperHelper.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/databinding/AbstractWrapperHelper.java Wed
Jan 20 19:13:15 2010
@@ -82,7 +82,7 @@
                 }
                 Object o = lst.get(x);
                 o = getPartObject(x, o);                
-                if (o instanceof List) {
+                if (o instanceof List && getMethods[x] != null) {
                     List<Object> col = CastUtils.cast((List)getMethods[x].invoke(wrapperObject));
                     if (col == null) {
                         //broken generated java wrappers



Mime
View raw message