Skip to content

Commit

Permalink
fixed possible NPE when required methodPatternChain not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Joan Viladrosa committed Nov 21, 2023
1 parent 04c79ff commit b217aec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public String getDescription() {
public Validated<Object> validate() {
return super.validate().and(Validated.test("methodPatternChain",
"Requires more than one pattern",
methodPatternChain, c -> c.size() > 1));
methodPatternChain, c -> c != null && c.size() > 1));
}

@Override
Expand Down

0 comments on commit b217aec

Please sign in to comment.