Fix NPE raised by HttpHeaders.equalsIgnoreCases() when one of its arguments is null
This commit is contained in:
parent
b067566a7c
commit
d4fd7ff458
@ -1176,6 +1176,10 @@ public abstract class HttpHeaders implements Iterable<Map.Entry<String, String>>
|
||||
return true;
|
||||
}
|
||||
|
||||
if (name1 == null || name2 == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
int nameLen = name1.length();
|
||||
if (nameLen != name2.length()) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user