Skip to content

Commit

Permalink
fixup! fix: #5671 Exit method as soon as we detect a loop to prevent …
Browse files Browse the repository at this point in the history
…an infinite loop leading to an OutOfMemoryError
  • Loading branch information
nhumblot committed Jun 21, 2023
1 parent 394f929 commit 76e0d7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ private boolean isVariableSelfReferencing(Map<String, String> vars, String key)
break;
}
nextKey = matcher.group(2);
if (resolutionChain.contains(nextKey)) {
if (Objects.nonNull(nextKey) && resolutionChain.contains(nextKey)) {
return true;
}
resolutionChain.add(nextKey);
Expand Down

0 comments on commit 76e0d7c

Please sign in to comment.