Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ivakegg committed Dec 8, 2023
1 parent b944c32 commit a3ae622
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,10 +421,12 @@ public <T> T createUUIDQueryAndNext(final AbstractUUIDLookupCriteria unvalidated

private Query createSettings(MultivaluedMap<String,String> queryParameters) {
Query query = responseObjectFactory.getQueryImpl();
query.setOptionalQueryParameters(queryParameters);
for (String key : queryParameters.keySet()) {
if (queryParameters.get(key).size() == 1) {
query.addParameter(key, queryParameters.get(key).get(0));
if (queryParameters != null) {
query.setOptionalQueryParameters(queryParameters);
for (String key : queryParameters.keySet()) {
if (queryParameters.get(key).size() == 1) {
query.addParameter(key, queryParameters.get(key).get(0));
}
}
}
return query;
Expand Down

0 comments on commit a3ae622

Please sign in to comment.