cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject svn commit: r443326 - /incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/BareInInterceptor.java
Date Thu, 14 Sep 2006 12:19:55 GMT
Author: tli
Date: Thu Sep 14 05:19:54 2006
New Revision: 443326

URL: http://svn.apache.org/viewvc?view=rev&rev=443326
Log:
fix null point problem of bare type unmarshall

Modified:
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/BareInInterceptor.java

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/BareInInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/BareInInterceptor.java?view=diff&rev=443326&r1=443325&r2=443326
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/BareInInterceptor.java
(original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/BareInInterceptor.java
Thu Sep 14 05:19:54 2006
@@ -78,8 +78,10 @@
                     }
                     if (streamParaQName.equals(paraQName)) {
                         Class cls = (Class)mpi.getProperty(Class.class.getName());
-                        if (!cls.getName().equals("void")) {
+                        if (cls != null && !cls.getName().equals("void")) {
                             o = dr.read(paraQName, message, cls);
+                        } else {
+                            o = dr.read(paraQName, message, null);
                         }
                         break;
                     }



Mime
View raw message