You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by co...@apache.org on 2014/10/30 11:16:26 UTC

svn commit: r1635451 - /webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/saml/ext/AssertionWrapper.java

Author: coheigea
Date: Thu Oct 30 10:16:26 2014
New Revision: 1635451

URL: http://svn.apache.org/r1635451
Log:
NPE guard in AssertionWrapper

Modified:
    webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/saml/ext/AssertionWrapper.java

Modified: webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/saml/ext/AssertionWrapper.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/saml/ext/AssertionWrapper.java?rev=1635451&r1=1635450&r2=1635451&view=diff
==============================================================================
--- webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/saml/ext/AssertionWrapper.java (original)
+++ webservices/wss4j/branches/1_6_x-fixes/src/main/java/org/apache/ws/security/saml/ext/AssertionWrapper.java Thu Oct 30 10:16:26 2014
@@ -217,6 +217,12 @@ public class AssertionWrapper {
      * @param parms of type SAMLParms
      */
     public AssertionWrapper(SAMLParms parms) throws WSSecurityException {
+        if (parms == null || parms.getCallbackHandler() == null) {
+            throw new IllegalStateException(
+               "No SAML CallbackHandler has been configured"
+            );
+        }
+        
         OpenSAMLUtil.initSamlEngine();
         
         //