aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main/java/at/gv
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-05-15 16:40:03 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-05-15 16:40:03 +0200
commit608d8fecab0568f35c87cae73ef29e573be63ef0 (patch)
tree922faa438ddb67978edd084294e7595de455ff3d /id/server/idserverlib/src/main/java/at/gv
parentba368142bebbe6fb2f2fb72b58e2b80be8fcd860 (diff)
downloadmoa-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')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/data/AuthenticationData.java5
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";
}
/**