From 5eebfbc642c77d0c5e2db515f9126ad6b3ffd7b9 Mon Sep 17 00:00:00 2001 From: Bob Pan Date: Tue, 17 Jan 2017 17:03:55 +0800 Subject: [PATCH] fix type descriptor --- .../main/java/com/googlecode/d2j/converter/J2IRConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dex-translator/src/main/java/com/googlecode/d2j/converter/J2IRConverter.java b/dex-translator/src/main/java/com/googlecode/d2j/converter/J2IRConverter.java index 76ea2ba1..40d3a58a 100644 --- a/dex-translator/src/main/java/com/googlecode/d2j/converter/J2IRConverter.java +++ b/dex-translator/src/main/java/com/googlecode/d2j/converter/J2IRConverter.java @@ -84,7 +84,7 @@ public class J2IRConverter { if (methodNode.tryCatchBlocks != null) { for (TryCatchBlockNode tcb : methodNode.tryCatchBlocks) { target.traps.add(new Trap(getLabel(tcb.start), getLabel(tcb.end), new LabelStmt[]{getLabel(tcb.handler)}, - new String[]{tcb.type})); + new String[]{tcb.type == null ? null : Type.getObjectType(tcb.type).getDescriptor()})); int handlerIdx = insnList.indexOf(tcb.handler); handlers.set(handlerIdx);