changeset 4777:34398f424cfd

W80Parser: Return null if no year set to behave like other parsers and avoid building a (wrong) TimeSpan object.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 07 Jan 2013 11:55:46 +0100
parents 20b6ebf23916
children a70de5298248
files flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java	Sat Jan 05 15:05:51 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java	Mon Jan 07 11:55:46 2013 +0100
@@ -83,7 +83,7 @@
     @Override
     public Integer getYear() {
         if (anchorDate == null) {
-            return Integer.valueOf(0);
+            return null;
         }
         Calendar dateCalendar = Calendar.getInstance();
         dateCalendar.setTime(anchorDate);

http://dive4elements.wald.intevation.org