Skip to content

Commit

Permalink
PR feedback: Return null instead of throwing.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Griffin committed Sep 17, 2024
1 parent 5e218ee commit ae3b305
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public ConstraintFailureException(QueryFailure failure) {
}

public ConstraintFailure[] getConstraintFailures() {
return getResponse().getConstraintFailures().orElseThrow();
return getResponse().getConstraintFailures().orElse(null);
}
}

0 comments on commit ae3b305

Please sign in to comment.