Throw exception on invalid try-catch nodes #86

Closed
major wants to merge 1 commits from <deleted>:fix/catch_body_empty into master
  1. 2
      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

Loading…
Cancel
Save