From: Kai Moritz Date: Thu, 21 Jun 2012 09:01:02 +0000 (+0200) Subject: Version 1.0.3: NullPointerException in PercentCodec.encod() verhindert X-Git-Tag: 1.0.3 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=f183927bec2cce672f9a81db651d3a7fa8e98823;p=percentcodec Version 1.0.3: NullPointerException in PercentCodec.encod() verhindert --- diff --git a/pom.xml b/pom.xml index 7357a3c7..23df0003 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ de.halbekunst juplo - 1.0.2 + 1.0.3 Juplo pom http://www.halbekunst.de @@ -24,7 +24,7 @@ - cachecontrol + utils diff --git a/utils/pom.xml b/utils/pom.xml index bb58b1fc..a9bd695b 100644 --- a/utils/pom.xml +++ b/utils/pom.xml @@ -7,7 +7,7 @@ de.halbekunst juplo - 1.0.1 + 1.0.3 ${pom.parent.artifactId}-utils diff --git a/utils/src/main/java/de/halbekunst/juplo/utils/PercentCodec.java b/utils/src/main/java/de/halbekunst/juplo/utils/PercentCodec.java index d4c53ad1..0a0f8e44 100644 --- a/utils/src/main/java/de/halbekunst/juplo/utils/PercentCodec.java +++ b/utils/src/main/java/de/halbekunst/juplo/utils/PercentCodec.java @@ -24,6 +24,8 @@ public class PercentCodec { public String encode(CharSequence in) { + if (in == null) + return ""; StringBuilder out = new StringBuilder(); int i = 0; int length = in.length();