From 89694b4e1f0e4fa9b370dcfb77b6b35e0fb98b8f Mon Sep 17 00:00:00 2001 From: Raymond Auge Date: Mon, 7 Sep 2015 11:58:16 -0400 Subject: Bug 476808 - [http servlet] not properly handling null parameters in some cases Signed-off-by: Raymond Auge --- .../src/org/eclipse/equinox/http/servlet/internal/util/Params.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/util/Params.java b/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/util/Params.java index 0537b330c..5d60e2062 100644 --- a/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/util/Params.java +++ b/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/util/Params.java @@ -24,6 +24,9 @@ public class Params { } public static String[] append(String[] params, String... values) { + if (values == null) { + values = new String[] {null}; + } String[] tmp = values; int length = 0; if (params != null) { -- cgit v1.2.3