Skip to content

Commit df904f0

Browse files
committed
add comment
1 parent c0f6c65 commit df904f0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/util/ExceptionHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public static Throwable getInnerMostThrowable(Throwable t, Deque<Throwable> chai
6868
if (chainedExceptions != null) {
6969
chainedExceptions.addFirst(t);
7070
}
71+
// putting an arbitrary limit to avoid infinite loops with cycling causes
7172
int i = 100;
7273
while (t.getCause() != null && i > 0) {
7374
t = t.getCause();

0 commit comments

Comments
 (0)