Skip to content

Commit

Permalink
Workaround for #25
Browse files Browse the repository at this point in the history
  • Loading branch information
ThexXTURBOXx authored and pxb1988 committed Oct 3, 2023
1 parent cc9861b commit 9510b74
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ public void convertCode(DexMethodNode methodNode, MethodVisitor mv, ClzCtx clzCt
}
}
// code convert ok, copy to MethodWriter and check for Size
mn.accept(mv);
try {
mn.accept(mv);
} catch (Exception e) {
System.out.println("Cannot convert " + clzCtx.classDescriptor);
if (exceptionHandler != null)
exceptionHandler.handleMethodTranslateException(methodNode.method, methodNode, mn, e);
}
if (mw != null) {
try {
AsmBridge.sizeOfMethodWriter(mw);
Expand Down

0 comments on commit 9510b74

Please sign in to comment.