cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r790637 - /cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java
Date Thu, 02 Jul 2009 16:18:21 GMT
Author: dkulp
Date: Thu Jul  2 16:18:21 2009
New Revision: 790637

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

Modified:
    cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java

Modified: cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java?rev=790637&r1=790636&r2=790637&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java
(original)
+++ cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java
Thu Jul  2 16:18:21 2009
@@ -302,6 +302,9 @@
                                          Object mObj) throws Fault, JAXBException {
         // Have to handle this ourselves.... which really
         // sucks.... but what can we do?
+        if (mObj == null) {
+            return;
+        }
         Object objArray;
         Class cls = null;
         if (mObj instanceof List) {



Mime
View raw message