Skip to content

Commit

Permalink
Consider the case where QueryParameters is null
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP committed Jan 9, 2024
1 parent 7bc5183 commit 16bcfaf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ public void setUri(@Nonnull final URI uri) {
* @param parameters The object to add the query parameters from.
*/
public void addQueryParameters(@Nullable final QueryParameters parameters) {
if (parameters == null) return;
Map<String, Object> params = parameters.toQueryParameters();
for (Map.Entry<String, Object> entry : params.entrySet()) {
if (entry.getKey() != null && entry.getValue() != null) {
Expand Down

0 comments on commit 16bcfaf

Please sign in to comment.