Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/server/CSVExportServiceImpl.java @ 1480:1f2f08211a5f
Skip empty lines in CSV service.
flys-client/trunk@3533 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 23 Dec 2011 06:59:38 +0000 |
parents | 6e694603cde1 |
children |
comparison
equal
deleted
inserted
replaced
1479:2f525f54e429 | 1480:1f2f08211a5f |
---|---|
73 | 73 |
74 List<String[]> lines = new ArrayList<String[]>(); | 74 List<String[]> lines = new ArrayList<String[]>(); |
75 String[] line = null; | 75 String[] line = null; |
76 | 76 |
77 while ((line = csvReader.readNext()) != null) { | 77 while ((line = csvReader.readNext()) != null) { |
78 if (line != null && line.length > 0) { | 78 if (line != null) { |
79 if (!line[0].startsWith("#")) { | 79 if (!line[0].startsWith("#") && line.length > 0) { |
80 lines.add(line); | 80 if (line[0].replace("'", "").length() > 0) { |
81 lines.add(line); | |
82 } | |
81 } | 83 } |
82 } | 84 } |
83 } | 85 } |
84 | 86 |
85 return lines; | 87 return lines; |