changeset 6398:13ecaf6c0f20

Add null pointer guard before encode
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 21 Jun 2013 18:09:53 +0200
parents f579e4a80b84
children 10fe6758dfb0
files gwt-client/src/main/java/org/dive4elements/river/client/server/MapPrintServiceImpl.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/server/MapPrintServiceImpl.java	Fri Jun 21 17:36:50 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/server/MapPrintServiceImpl.java	Fri Jun 21 18:09:53 2013 +0200
@@ -399,6 +399,7 @@
 
     private static final String encode(String s) {
         try {
+            if (s == null) return null;
             return URLEncoder.encode(s, "UTF-8");
         }
         catch (UnsupportedEncodingException usee) {

http://dive4elements.wald.intevation.org