[Dive4elements-commits] [PATCH] Backend: Forgot to handle the unlikely case that there are more than 2 nested brackets in main values

Wald Commits scm-commit at wald.intevation.org
Tue Apr 16 18:43:30 CEST 2013


# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1366130606 -7200
# Node ID ab4419948655c0bad05b6facec85f6b5c6257d6f
# Parent  c75be5205a690aaaa01c145790d78c5a9dfd156e
Backend: Forgot to handle the unlikely case that there are more than 2 nested brackets in main values.

diff -r c75be5205a69 -r ab4419948655 flys-backend/src/main/java/de/intevation/flys/importer/parsers/StaFileParser.java
--- 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) {


More information about the Dive4elements-commits mailing list