Skip to content

Commit

Permalink
Fix validation
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoxaAntoxic committed Jan 30, 2024
1 parent 1f47454 commit 062a7b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ private static void validateCurrency(String currency) throws ValidationException

private void validateDsaFor(Bid bid) throws ValidationException {
final ObjectNode bidExt = bid.getExt();
if (bidExt != null && (!bidExt.hasNonNull(DSA_EXT) || bidExt.get(DSA_EXT).isEmpty())) {
if (bidExt == null || !bidExt.hasNonNull(DSA_EXT) || bidExt.get(DSA_EXT).isEmpty()) {
throw new ValidationException("Bid \"%s\" missing DSA", bid.getId());
}
}
Expand Down

0 comments on commit 062a7b2

Please sign in to comment.