Mercurial > mxd2map
changeset 143:6d294beb0e59
Fixed exception handling for CartoLineSymbolReader.
author | vc11884admin@VC11884.win.bsh.de |
---|---|
date | Mon, 27 Jun 2011 17:16:55 +0200 |
parents | 8f30f7e802d6 |
children | ad3f540fd1c3 |
files | ChangeLog src/java/de/intevation/mxd/reader/CartoLineSymbolReader.java |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Jun 27 16:07:13 2011 +0200 +++ b/ChangeLog Mon Jun 27 17:16:55 2011 +0200 @@ -1,3 +1,8 @@ +2011-06-27 Raimund Renkert <raimund.renkert@intevation.de> + + * src/java/de/intevation/mxd/writer/CartoLineSymbolReader.java: + Fixed exception handling for this reader. + 2011-06-27 Raimund Renkert <raimund.renkert@intevation.de> * src/java/de/intevation/mxd/writer/MapScriptWriter.java:
--- a/src/java/de/intevation/mxd/reader/CartoLineSymbolReader.java Mon Jun 27 16:07:13 2011 +0200 +++ b/src/java/de/intevation/mxd/reader/CartoLineSymbolReader.java Mon Jun 27 17:16:55 2011 +0200 @@ -195,6 +195,9 @@ catch(IOException ioe){ logger.warn("Could not read pattern elements."); } + catch(NullPointerException npe) { + logger.debug("No pattern elements in carto line symbol"); + } symbolElement.setAttribute("type", "line"); symbolElement.setAttribute("style", "carto");