Skip to content

Commit

Permalink
fix: resolve npe exception when request params are matched and removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanLi39 committed Jan 2, 2024
1 parent 674dd74 commit 2eb7de5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static boolean matchAndRemoveRequestParams(Map<String, List<String>> requ
Iterator<String> iterator = values.iterator();
while (iterator.hasNext()) {
String next = iterator.next();
if (next.equals(value)) {
if (next != null && next.equals(value)) {
iterator.remove();
return true;
}
Expand Down

0 comments on commit 2eb7de5

Please sign in to comment.