changeset 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 197bd0958cba
children ad5238e3e736
files artifacts/src/main/java/org/dive4elements/river/utils/MapfileGenerator.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/utils/MapfileGenerator.java	Thu Dec 05 19:29:52 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/utils/MapfileGenerator.java	Thu Dec 05 19:37:59 2013 +0100
@@ -259,6 +259,10 @@
                 }
             });
 
+            if (layerFiles == null) {
+                continue;
+            }
+
             for (File layer: layerFiles) {
                 try {
                     layers.add(layer.getCanonicalPath());

http://dive4elements.wald.intevation.org