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 16:30:12 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 4c9cc32f7 -> bbcbac00d


NPE fix


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

Branch: refs/heads/master
Commit: bbcbac00dd7a1bf5f0c68f9a77dae1497d969167
Parents: 4c9cc32
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:24:50 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/bbcbac00/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 41b4dad..b5a0d97 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
@@ -116,6 +116,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