Skip to content

Commit 9510b74

Browse files
ThexXTURBOXxpxb1988
authored andcommitted
Workaround for #25
1 parent cc9861b commit 9510b74

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dex-translator/src/main/java/com/googlecode/d2j/dex/ExDex2Asm.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@ public void convertCode(DexMethodNode methodNode, MethodVisitor mv, ClzCtx clzCt
4848
}
4949
}
5050
// code convert ok, copy to MethodWriter and check for Size
51-
mn.accept(mv);
51+
try {
52+
mn.accept(mv);
53+
} catch (Exception e) {
54+
System.out.println("Cannot convert " + clzCtx.classDescriptor);
55+
if (exceptionHandler != null)
56+
exceptionHandler.handleMethodTranslateException(methodNode.method, methodNode, mn, e);
57+
}
5258
if (mw != null) {
5359
try {
5460
AsmBridge.sizeOfMethodWriter(mw);

0 commit comments

Comments
 (0)