Skip to content

Commit

Permalink
bugfix: support try/finally properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jgpc42 committed Feb 12, 2021
1 parent eec3582 commit e8cee4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/insn/op.clj
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@
`handler` against throwable `etype`."
[^MethodVisitor v start end handler etype]
(let [[start end handler] (map util/label-from [start end handler])]
(.visitTryCatchBlock v start end handler (util/class-desc etype))))
(.visitTryCatchBlock v start end handler (when-not (nil? etype)
(util/class-desc etype)))))

(defn visit-label!
"Set label offset to current visitor position."
Expand Down

0 comments on commit e8cee4a

Please sign in to comment.