Fix for potential NPE

parent 30b98bea
...@@ -31,7 +31,7 @@ public class RequestContentDataExtractor { ...@@ -31,7 +31,7 @@ public class RequestContentDataExtractor {
for (Entry<String, String[]> entry : request.getParameterMap().entrySet()) { for (Entry<String, String[]> entry : request.getParameterMap().entrySet()) {
String key = entry.getKey(); String key = entry.getKey();
if (!queryParams.contains(key)) { if (!queryParams.contains(key) && entry.getValue() != null) {
for (String value : entry.getValue()) { for (String value : entry.getValue()) {
builder.add(key, value); builder.add(key, value);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment