[MXD2map-commits] r310:be441fa4bed0
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Fri Sep 14 11:54:12 CEST 2012
details: http://hg.intevation.org/geospatial/mxd2map/rev/be441fa4bed0
changeset: 310:be441fa4bed0
user: Andre Heinecke <aheinecke at intevation.de>
date: Fri Sep 14 11:50:40 2012 +0200
description:
Throw an exception in case reading Raster layer fails
diffstat:
ChangeLog | 5 +++++
src/java/de/intevation/mxd/reader/MXDReader.java | 3 +++
2 files changed, 8 insertions(+), 0 deletions(-)
diffs (25 lines):
diff -r e8021f3e411a -r be441fa4bed0 ChangeLog
--- a/ChangeLog Fri Sep 14 11:48:52 2012 +0200
+++ b/ChangeLog Fri Sep 14 11:50:40 2012 +0200
@@ -1,3 +1,8 @@
+2012-09-14 Andre Heinecke <aheinecke at intevation.de>
+
+ * src/java/de/intevation/mxd/reader/MXDReader.java:
+ Throw exception in case a RasterLayer read fails
+
2012-09-14 Andre Heinecke <aheinecke at intevation.de>
* src/java/de/intevation/mxd/reader/FeatureLayerReader.java:
diff -r e8021f3e411a -r be441fa4bed0 src/java/de/intevation/mxd/reader/MXDReader.java
--- a/src/java/de/intevation/mxd/reader/MXDReader.java Fri Sep 14 11:48:52 2012 +0200
+++ b/src/java/de/intevation/mxd/reader/MXDReader.java Fri Sep 14 11:50:40 2012 +0200
@@ -257,6 +257,9 @@
new RasterLayerReader(layer);
lr.setUtil(util);
Element layerElement = lr.read();
+ if(layerElement == null) {
+ throw new IOException ("Error reading RasterLayer.");
+ }
/* TODO implement support for classes in Raster Layers
IRasterRenderer renderer =
((RasterLayer)layer).getRenderer();
More information about the MXD2map-commits
mailing list