aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/src/main/java/at/gv/egovernment/moa/util/URLEncoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/src/main/java/at/gv/egovernment/moa/util/URLEncoder.java b/common/src/main/java/at/gv/egovernment/moa/util/URLEncoder.java
index 3255b3157..e6df1fd33 100644
--- a/common/src/main/java/at/gv/egovernment/moa/util/URLEncoder.java
+++ b/common/src/main/java/at/gv/egovernment/moa/util/URLEncoder.java
@@ -44,6 +44,8 @@ public class URLEncoder {
* @throws UnsupportedEncodingException when the desired encoding is not supported
*/
public static String encode(String s, String encoding) throws UnsupportedEncodingException {
+// if (MiscUtil.isEmpty(s))
+// return null;
byte[] barr = s.getBytes(encoding);
ByteArrayInputStream bin = new ByteArrayInputStream(barr);
StringWriter out = new StringWriter();