Browse Source

Fix for potential NPE

pull/6/head
Spencer Gibb 7 years ago
parent
commit
78e4cb4410
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 2
      spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/util/RequestContentDataExtractor.java

2
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/util/RequestContentDataExtractor.java

@ -31,7 +31,7 @@ public class RequestContentDataExtractor { @@ -31,7 +31,7 @@ public class RequestContentDataExtractor {
for (Entry<String, String[]> entry : request.getParameterMap().entrySet()) {
String key = entry.getKey();
if (!queryParams.contains(key)) {
if (!queryParams.contains(key) && entry.getValue() != null) {
for (String value : entry.getValue()) {
builder.add(key, value);
}

Loading…
Cancel
Save