Attribute Script: Caused by: jdk.nashorn.internal.runtime.ECMAException: ReferenceError:

Peter Schober peter.schober at univie.ac.at
Wed Jul 27 05:15:07 EDT 2016


* Reid Watson <reid.watson at auckland.ac.nz> [2016-07-27 07:54]:
> Caused by: javax.script.ScriptException: ReferenceError: "email" is not defined in <eval> at line number 3

Oh, and of course you can also code more defensively by adding a check
for undefined and/or null attributes. Doing that will also prevent
such errors in cases where a person object in LDAP actually is missing
any email address attributes (i.e., bad data vs. bad coding).
-peter


More information about the users mailing list