Skip to content

Commit

Permalink
Protect include/exclude test commands against NPE
Browse files Browse the repository at this point in the history
Fixes #33961
  • Loading branch information
gsmet committed Jun 12, 2023
1 parent 35e0f9c commit 7206ac0
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 7206ac0

Please sign in to comment.