cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r531565 - /incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/RPCInInterceptor.java
Date Mon, 23 Apr 2007 19:11:55 GMT
Author: gawor
Date: Mon Apr 23 12:11:54 2007
New Revision: 531565

URL: http://svn.apache.org/viewvc?view=rev&rev=531565
Log:
avoids NPE

Modified:
    incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/RPCInInterceptor.java

Modified: incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/RPCInInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/RPCInInterceptor.java?view=diff&rev=531565&r1=531564&r2=531565
==============================================================================
--- incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/RPCInInterceptor.java
(original)
+++ incubator/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/RPCInInterceptor.java
Mon Apr 23 12:11:54 2007
@@ -74,12 +74,13 @@
 
         if (message.getExchange().get(BindingOperationInfo.class) == null) {
             operation = getOperation(message, new QName(xmlReader.getNamespaceURI(), opName));
-            message.getExchange().put(BindingOperationInfo.class, operation);
-            message.getExchange().put(OperationInfo.class, operation.getOperationInfo());
-
             if (operation == null) {
                 // it's doc-lit-bare
                 new BareInInterceptor().handleMessage(message);
+                return;
+            } else {
+                message.getExchange().put(BindingOperationInfo.class, operation);
+                message.getExchange().put(OperationInfo.class, operation.getOperationInfo());
             }
         } else {
             operation = message.getExchange().get(BindingOperationInfo.class);



Mime
View raw message