diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt b/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt index 0e785a054..c8cbf6a30 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt @@ -116,6 +116,11 @@ private fun Throwable.getCustomStackTrace(full: Boolean, parent: List<String> = } } + if (this === cause) { + add("Infinite recurring causes") + return@buildList + } + cause?.let { addAll(it.getCustomStackTrace(full, this)) } |