aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main
diff options
context:
space:
mode:
authorAlexander Marsalek <amarsalek@iaik.tugraz.at>2015-03-05 12:31:17 +0100
committerAlexander Marsalek <amarsalek@iaik.tugraz.at>2015-03-05 12:31:17 +0100
commit6b6c98ae7af48c15e86b189e0db9e39bc1d14edb (patch)
tree7fdbaeeeeb02cfb5f06a5e3e29a9d6c7e419bec4 /id/server/idserverlib/src/main
parentaa6bb4186317b8f4c9a2c6bdb71d774ee69173c5 (diff)
downloadmoa-id-spss-6b6c98ae7af48c15e86b189e0db9e39bc1d14edb.tar.gz
moa-id-spss-6b6c98ae7af48c15e86b189e0db9e39bc1d14edb.tar.bz2
moa-id-spss-6b6c98ae7af48c15e86b189e0db9e39bc1d14edb.zip
null safe assignment
Diffstat (limited to 'id/server/idserverlib/src/main')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java
index fd7c7f237..c638c6324 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java
@@ -29,6 +29,7 @@ import javax.xml.transform.TransformerException;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringEscapeUtils;
+import org.apache.commons.lang3.BooleanUtils;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.VelocityEngine;
@@ -1729,7 +1730,7 @@ public class AuthenticationServer implements MOAIDAuthConstants {
boolean globallyMandatory = false;
for (StorkAttribute currentGlobalAttribute : storkConfig.getStorkAttributes())
if (current.getName().equals(currentGlobalAttribute.getName())) {
- globallyMandatory = currentGlobalAttribute.isMandatory();
+ globallyMandatory = BooleanUtils.isTrue(currentGlobalAttribute.isMandatory());
break;
}