cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sea...@apache.org
Subject svn commit: r740810 - /cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java
Date Wed, 04 Feb 2009 17:46:50 GMT
Author: seanoc
Date: Wed Feb  4 17:46:50 2009
New Revision: 740810

URL: http://svn.apache.org/viewvc?rev=740810&view=rev
Log:
fix for https://issues.apache.org/jira/browse/CXF-2022

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=740810&r1=740809&r2=740810&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
Wed Feb  4 17:46:50 2009
@@ -253,8 +253,12 @@
             
             SchemaInfo sch = part.getMessageInfo().getOperation().getInterface()
                 .getService().getSchema(namespace);
-            if (!sch.isElementFormQualified()) {
-                namespace = null;
+            if (sch != null) {
+                if (!sch.isElementFormQualified()) {
+                    namespace = null;
+                }
+            } else {
+                LOG.warning("Schema associated with " + namespace + " is null");
             }
             
             for (Field f : cls.getDeclaredFields()) {



Mime
View raw message