Skip to content

Commit

Permalink
Fix OperationResultRepoSearchAsserter
Browse files Browse the repository at this point in the history
This fixes failing TestSecurityBasic.
  • Loading branch information
mederly committed Dec 21, 2022
1 parent d4c17c9 commit ef9ff5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private Predicate<OperationResult> createQuerySubstringPredicate(String expected
@Override
public boolean test(OperationResult operationResult) {
String queryParam = operationResult.getParamSingle(OperationResult.PARAM_QUERY);
return queryParam.contains(expectedSubstring);
return queryParam != null && queryParam.contains(expectedSubstring);
}

@Override
Expand Down

0 comments on commit ef9ff5c

Please sign in to comment.