comparison artifacts/src/main/java/org/dive4elements/river/utils/MapfileGenerator.java @ 7655:81ae2a4873f2

Do not NPE if there is a folder without mapfiles in the shapefile path
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 05 Dec 2013 19:37:59 +0100
parents af13ceeba52a
children e4606eae8ea5
comparison
equal deleted inserted replaced
7654:197bd0958cba 7655:81ae2a4873f2
257 public boolean accept(File directory, String name) { 257 public boolean accept(File directory, String name) {
258 return name.startsWith(MS_LAYER_PREFIX); 258 return name.startsWith(MS_LAYER_PREFIX);
259 } 259 }
260 }); 260 });
261 261
262 if (layerFiles == null) {
263 continue;
264 }
265
262 for (File layer: layerFiles) { 266 for (File layer: layerFiles) {
263 try { 267 try {
264 layers.add(layer.getCanonicalPath()); 268 layers.add(layer.getCanonicalPath());
265 } 269 }
266 catch (IOException ioe) { 270 catch (IOException ioe) {

http://dive4elements.wald.intevation.org