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:19:30 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes c824bd844 -> bee6fdb5d


[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/bee6fdb5
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/bee6fdb5
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/bee6fdb5

Branch: refs/heads/2.7.x-fixes
Commit: bee6fdb5d76ff029914cd3506e0cfa296f5ee93d
Parents: c824bd8
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:18:42 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/bee6fdb5/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 30911b8..ea7ee1c 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
@@ -25,8 +25,10 @@ import javax.xml.namespace.QName;
 
 import org.apache.cxf.Bus;
 import org.apache.cxf.ws.policy.AbstractPolicyInterceptorProvider;
+import org.apache.cxf.ws.rm.RMCaptureInInterceptor;
 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.RMSoapInterceptor;
 
@@ -37,6 +39,7 @@ public class RMPolicyInterceptorProvider extends AbstractPolicyInterceptorProvid
     private RMInInterceptor rmIn = new RMInInterceptor();
     private RMOutInterceptor rmOut = new RMOutInterceptor();
     private RMSoapInterceptor rmSoap = new RMSoapInterceptor();
+    private RMCaptureInInterceptor rmCaptureIn = new RMCaptureInInterceptor();
     private RMDeliveryInterceptor rmDelivery = new RMDeliveryInterceptor();
 
     static {
@@ -55,6 +58,10 @@ public class RMPolicyInterceptorProvider extends AbstractPolicyInterceptorProvid
         getInInterceptors().add(rmIn);
         getInInterceptors().add(rmSoap);
         getInInterceptors().add(rmDelivery);
+        RMManager manager = bus.getExtension(RMManager.class);
+        if (null != manager && null != manager.getStore()) {
+            getInInterceptors().add(rmCaptureIn);
+        }
 
         getOutInterceptors().add(rmOut);
         getOutInterceptors().add(rmSoap);


Mime
View raw message