Mercurial > dive4elements > river
changeset 8087:2fcbcc9bb59a
Do not try to load empty files.
Aritfacts can be directly defined in the conf.xml nowadays so
an xlink is no longer required to exist.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 11 Aug 2014 18:33:50 +0200 |
parents | 7ede7904c8a5 |
children | b834caf0a4f0 |
files | artifacts/src/main/java/org/dive4elements/river/artifacts/context/RiverContextFactory.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/context/RiverContextFactory.java Tue Aug 12 10:57:53 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/context/RiverContextFactory.java Mon Aug 11 18:33:50 2014 +0200 @@ -261,6 +261,9 @@ String xlink = tmp.getAttribute(XPATH_XLINK); xlink = Config.replaceConfigDir(xlink); + if (xlink.isEmpty()) { + continue; + } File file = new File(xlink); if (!file.isFile() || !file.canRead()) {