From 608d8fecab0568f35c87cae73ef29e573be63ef0 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Thu, 15 May 2014 16:40:03 +0200 Subject: fix BuildAuthData to handle empty birtday element --- .../main/java/at/gv/egovernment/moa/id/data/AuthenticationData.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'id/server/idserverlib/src/main/java/at/gv') 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"; } /** -- cgit v1.2.3