easy script cannot execute

IAM David Bantz dabantz at alaska.edu
Thu Jul 9 21:28:14 EDT 2015


<resolver:Dependency ref="assuranceExplicit" />

...

        if (assurance == null)

                {assurance == new BasicAttribute("assurance");}

        if (assuranceExplicit == null)

                {assurance.getValues().add("a default value");}

        if (assuranceExplicit != null)


{assurance.getValues().add(assuranceExplicit.getValues().get(0));}

        logger.debug("assurance - allowed authN contexts: " +
assurance.getValues());

...

fails to execute with the ScriptedAttributeDefinition ERROR:

ScriptletAttributeDefinition assurance unable to execute script
javax.script.ScriptException:
sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot call
method "getValues" of null (<Unknown Source>#11)

assurance is assigned a value whether assuranceExplicit is null or not
null, so I cannot see how assurance can be null.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20150709/004edbac/attachment-0001.html>


More information about the users mailing list