Skip to content

Commit

Permalink
Merge pull request #5194 from zfqjava/master
Browse files Browse the repository at this point in the history
fix NPE if getResourcePaths return null
  • Loading branch information
BalusC authored Jan 26, 2023
2 parents 056dde4 + f3079f5 commit 91958aa
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ public String next() {
}

private void visit(String resourcePath) {
stack.addAll(externalContext.getResourcePaths(resourcePath));
java.util.Set<String> set = externalContext.getResourcePaths(resourcePath);
if(set != null) {
stack.addAll(set);
}
}

private void tryTake() {
Expand Down

0 comments on commit 91958aa

Please sign in to comment.