cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject cxf git commit: [CXF-6274] NullPointerException in DestinationSequence because of RMCaptureInInterceptor not inserted
Date Wed, 29 Apr 2015 13:03:08 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 83a6f123a -> 6a2b55597


[CXF-6274] NullPointerException in DestinationSequence because of RMCaptureInInterceptor not
inserted


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/6a2b5559
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/6a2b5559
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/6a2b5559

Branch: refs/heads/3.0.x-fixes
Commit: 6a2b5559768de9cf4f5eda3f31fb948d360bdd92
Parents: 83a6f12
Author: Akitoshi Yoshida <ay@apache.org>
Authored: Wed Apr 29 14:59:34 2015 +0200
Committer: Akitoshi Yoshida <ay@apache.org>
Committed: Wed Apr 29 15:02:21 2015 +0200

----------------------------------------------------------------------
 .../apache/cxf/ws/rm/policy/RMPolicyInterceptorProvider.java  | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/6a2b5559/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/policy/RMPolicyInterceptorProvider.java
----------------------------------------------------------------------
diff --git a/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/policy/RMPolicyInterceptorProvider.java
b/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/policy/RMPolicyInterceptorProvider.java
index 45e0a0a..7830065 100644
--- a/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/policy/RMPolicyInterceptorProvider.java
+++ b/rt/ws/rm/src/main/java/org/apache/cxf/ws/rm/policy/RMPolicyInterceptorProvider.java
@@ -27,9 +27,11 @@ import org.apache.cxf.Bus;
 import org.apache.cxf.ws.policy.AbstractPolicyInterceptorProvider;
 import org.apache.cxf.ws.rm.RM10Constants;
 import org.apache.cxf.ws.rm.RM11Constants;
+import org.apache.cxf.ws.rm.RMCaptureInInterceptor;
 import org.apache.cxf.ws.rm.RMCaptureOutInterceptor;
 import org.apache.cxf.ws.rm.RMDeliveryInterceptor;
 import org.apache.cxf.ws.rm.RMInInterceptor;
+import org.apache.cxf.ws.rm.RMManager;
 import org.apache.cxf.ws.rm.RMOutInterceptor;
 import org.apache.cxf.ws.rm.soap.RMSoapInInterceptor;
 import org.apache.cxf.ws.rm.soap.RMSoapOutInterceptor;
@@ -40,6 +42,7 @@ public class RMPolicyInterceptorProvider extends AbstractPolicyInterceptorProvid
     private static final Collection<QName> ASSERTION_TYPES;
     private RMInInterceptor rmIn = new RMInInterceptor();
     private RMOutInterceptor rmOut = new RMOutInterceptor();
+    private RMCaptureInInterceptor rmCaptureIn = new RMCaptureInInterceptor();
     private RMCaptureOutInterceptor rmCaptureOut = new RMCaptureOutInterceptor();
     private RMSoapOutInterceptor rmOutSoap = new RMSoapOutInterceptor();
     private RMSoapInInterceptor rmInSoap = new RMSoapInInterceptor();
@@ -64,6 +67,10 @@ public class RMPolicyInterceptorProvider extends AbstractPolicyInterceptorProvid
         getInInterceptors().add(rmIn);
         getInInterceptors().add(rmInSoap);
         getInInterceptors().add(rmDelivery);
+        RMManager manager = bus.getExtension(RMManager.class);
+        if (null != manager && null != manager.getStore()) {
+            getInInterceptors().add(rmCaptureIn);
+        }
 
         getOutInterceptors().add(rmOut);
         getOutInterceptors().add(rmCaptureOut);


Mime
View raw message