changeset 7354:809e76b7fe38

BedHeightSingleParser: do not omit lines if last column is empty.
author Tom Gottfried <tom@intevation.de>
date Wed, 16 Oct 2013 14:40:19 +0200
parents c6825778de1f
children d12478cc5bb0
files backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightSingleParser.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightSingleParser.java	Wed Oct 16 13:03:13 2013 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightSingleParser.java	Wed Oct 16 14:40:19 2013 +0200
@@ -39,10 +39,10 @@
      */
     @Override
     protected void handleDataLine(ImportBedHeight obj, String line) {
-        String[] values = line.split(SEPERATOR_CHAR);
+        String[] values = line.split(SEPERATOR_CHAR, -1);
 
-        if (values == null || (values.length != 1 && values.length < 6)) {
-            //log.warn("BSP: Error while parsing data line: '" + line + "'");
+        if (values == null) {
+            log.warn("BSP: Error while parsing data line: '" + line + "'");
             return;
         }
 

http://dive4elements.wald.intevation.org