changeset 1026:12c3863b2d8a

Bugfix: improved the code to write incoming data of the MapViewerCallAction - if debug is disabled, no nullpointer exception will occur anymore. gnv/trunk@1280 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 30 Nov 2010 08:56:22 +0000
parents 2996395e44c9
children fca4b5eb8d2f
files gnv/ChangeLog gnv/src/main/java/de/intevation/gnv/action/mapviewer/MapViewerCallAction.java
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gnv/ChangeLog	Mon Nov 29 09:20:01 2010 +0000
+++ b/gnv/ChangeLog	Tue Nov 30 08:56:22 2010 +0000
@@ -1,3 +1,9 @@
+2010-11-30  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/gnv/action/mapviewer/MapViewerCallAction.java:
+	  Bugfix: if debug logging was disabled for this class, a Nullpointer
+	  exception would have been thrown.
+
 2010-11-29  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/gnv/util/CaptureInputStream.java: New. This
--- a/gnv/src/main/java/de/intevation/gnv/action/mapviewer/MapViewerCallAction.java	Mon Nov 29 09:20:01 2010 +0000
+++ b/gnv/src/main/java/de/intevation/gnv/action/mapviewer/MapViewerCallAction.java	Tue Nov 30 08:56:22 2010 +0000
@@ -79,7 +79,8 @@
                 : null;
 
             try {
-                ExternalCallParser ecp = new XMLExternalCallParser(capture);
+                ExternalCallParser ecp = new XMLExternalCallParser(
+                    capture != null ? capture : inputStream);
                 ecp.parse();
 
                 // print incoming data to log

http://dive4elements.wald.intevation.org