cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Tam (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-2837) Add null pointer check in SoapOutInterceptor
Date Fri, 04 Jun 2010 01:41:56 GMT
Add null pointer check in SoapOutInterceptor
--------------------------------------------

                 Key: CXF-2837
                 URL: https://issues.apache.org/jira/browse/CXF-2837
             Project: CXF
          Issue Type: Improvement
          Components: Soap Binding
            Reporter: William Tam
             Fix For: 2.3, 2.2.9


It allows soap headers to be skipped (e.g. by Camel).   

Index: rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapOutInterceptor.java
===================================================================
--- rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapOutInterceptor.java
(revision 22)
+++ rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapOutInterceptor.java
(working copy)
@@ -219,6 +219,11 @@
                     continue;
                 }
                 Object arg = objs.get(part);
+
+                if (arg == null) {
+                    continue;
+                }
+
                 objs.remove(part);
                 if (!(startedHeader || preexistingHeaders)) {
                     try {


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message