cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1493699 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/SamlTokenPolicyValidator.java
Date Mon, 17 Jun 2013 09:58:50 GMT
Author: coheigea
Date: Mon Jun 17 09:58:50 2013
New Revision: 1493699

URL: http://svn.apache.org/r1493699
Log:
Avoid a NPE when no SAML Token Type is specified

Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/SamlTokenPolicyValidator.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/SamlTokenPolicyValidator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/SamlTokenPolicyValidator.java?rev=1493699&r1=1493698&r2=1493699&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/SamlTokenPolicyValidator.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/SamlTokenPolicyValidator.java
Mon Jun 17 09:58:50 2013
@@ -163,7 +163,9 @@ public class SamlTokenPolicyValidator ex
             return false;
         }
         
-        assertPolicy(aim, new QName(samlToken.getVersion().getNamespace(), samlTokenType.name()));
+        if (samlTokenType != null) {
+            assertPolicy(aim, new QName(samlToken.getVersion().getNamespace(), samlTokenType.name()));
+        }
         return true;
     }
     



Mime
View raw message