Skip to content

Commit

Permalink
Protect include/exclude test commands against NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet authored and sberyozkin committed Jun 21, 2023
1 parent 8e7ca81 commit 04b672e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ protected String configKey() {

@Override
protected void configure(TestSupport testSupport) {
testSupport.setPatterns(pattern, testSupport.exclude.pattern());
testSupport.setPatterns(pattern, testSupport.exclude != null ? testSupport.exclude.pattern() : null);
}
}

Expand All @@ -320,7 +320,7 @@ protected String configKey() {

@Override
protected void configure(TestSupport testSupport) {
testSupport.setPatterns(testSupport.include.pattern(), pattern);
testSupport.setPatterns(testSupport.include != null ? testSupport.include.pattern() : null, pattern);
}
}

Expand Down

0 comments on commit 04b672e

Please sign in to comment.