changeset 5736:ab4419948655

Backend: Forgot to handle the unlikely case that there are more than 2 nested brackets in main values.
author Sascha L. Teichmann <teichmann@intevation.de>
date Tue, 16 Apr 2013 18:43:26 +0200
parents c75be5205a69
children ce002608992d
files flys-backend/src/main/java/de/intevation/flys/importer/parsers/StaFileParser.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/StaFileParser.java	Tue Apr 16 18:07:05 2013 +0200
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/StaFileParser.java	Tue Apr 16 18:43:26 2013 +0200
@@ -261,7 +261,9 @@
             return new NameAndTimeInterval(type, timeInterval);
         }
 
-        return null;
+        // more than 3 elements return unmodified.
+
+        return new NameAndTimeInterval(name);
     }
 
     private static ImportTimeInterval getTimeInterval(String datePart) {

http://dive4elements.wald.intevation.org