cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf git commit: NPE fix
Date Tue, 10 Feb 2015 17:01:03 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 90f90cbe8 -> 30da37246


NPE fix


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

Branch: refs/heads/2.7.x-fixes
Commit: 30da372466c6e1372c6137b14db0ca67296d8078
Parents: 90f90cb
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Tue Feb 10 16:24:27 2015 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Tue Feb 10 16:49:31 2015 +0000

----------------------------------------------------------------------
 .../org/apache/cxf/ws/security/wss4j/CryptoCoverageChecker.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/30da3724/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/CryptoCoverageChecker.java
----------------------------------------------------------------------
diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/CryptoCoverageChecker.java
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/CryptoCoverageChecker.java
index 8f67b5c..1e66069 100644
--- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/CryptoCoverageChecker.java
+++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/CryptoCoverageChecker.java
@@ -124,6 +124,10 @@ public class CryptoCoverageChecker extends AbstractSoapInterceptor {
             // return
         }
         
+        if (message.getContent(SOAPMessage.class) == null) {
+            throw new SoapFault("Error obtaining SOAP document", Fault.FAULT_CODE_CLIENT);
+        }
+        
         Element documentElement = null;
         try {
             SOAPMessage saajDoc = message.getContent(SOAPMessage.class);


Mime
View raw message