Mercurial > dive4elements > river
diff 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 |
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());