diff --git a/dex-translator/src/main/java/com/googlecode/d2j/dex/ExDex2Asm.java b/dex-translator/src/main/java/com/googlecode/d2j/dex/ExDex2Asm.java index 97594335..99b17954 100644 --- a/dex-translator/src/main/java/com/googlecode/d2j/dex/ExDex2Asm.java +++ b/dex-translator/src/main/java/com/googlecode/d2j/dex/ExDex2Asm.java @@ -33,7 +33,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);