diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-05-15 16:40:03 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-05-15 16:40:03 +0200 |
commit | 608d8fecab0568f35c87cae73ef29e573be63ef0 (patch) | |
tree | 922faa438ddb67978edd084294e7595de455ff3d /id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/data/AuthenticationData.java | |
parent | ba368142bebbe6fb2f2fb72b58e2b80be8fcd860 (diff) | |
download | moa-id-spss-608d8fecab0568f35c87cae73ef29e573be63ef0.tar.gz moa-id-spss-608d8fecab0568f35c87cae73ef29e573be63ef0.tar.bz2 moa-id-spss-608d8fecab0568f35c87cae73ef29e573be63ef0.zip |
fix BuildAuthData to handle empty birtday element
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/data/AuthenticationData.java')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/data/AuthenticationData.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/data/AuthenticationData.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/data/AuthenticationData.java index 7a9d2cfc1..33e62d3d0 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/data/AuthenticationData.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/data/AuthenticationData.java @@ -221,7 +221,10 @@ public class AuthenticationData implements IAuthData, Serializable { public String getFormatedDateOfBirth() { DateFormat pvpDateFormat = new SimpleDateFormat(IDENTITY_LINK_DATE_FORMAT); - return pvpDateFormat.format(getDateOfBirth()); + if (getDateOfBirth() != null) + return pvpDateFormat.format(getDateOfBirth()); + else + return "1900-01-01"; } /** |