diff --git a/asm/src/main/java/dev/openrs2/asm/InsnNodeUtils.kt b/asm/src/main/java/dev/openrs2/asm/InsnNodeUtils.kt index ddc3102fc3..b8278da533 100644 --- a/asm/src/main/java/dev/openrs2/asm/InsnNodeUtils.kt +++ b/asm/src/main/java/dev/openrs2/asm/InsnNodeUtils.kt @@ -313,7 +313,7 @@ fun TryCatchBlockNode.isBodyEmpty(): Boolean { while (true) { when { - current == null -> return false + current == null -> error("Failed to reach end of try-catch block.") current === end -> return true current.opcode != -1 -> return false else -> current = current.next