bytedance / ByteX

ByteX is a bytecode plugin platform based on Android Gradle Transform API and ASM. 字节码插件开发平台
Apache License 2.0
3.13k stars 462 forks source link

Caused by: java.lang.RuntimeException: java.lang.RuntimeException: null #161

Open chsmy opened 1 year ago

chsmy commented 1 year ago

override fun visitTryCatchBlock(start: Label, end: Label, handler: Label?, type: String?) { handlerLabel = handler super.visitTryCatchBlock(start, end, handler, type) if (null != type && handler != null) { super.visitLabel(handler) super.visitLdcInsn(methodName) super.visitVarInsn(Opcodes.ALOAD, 0) super.visitMethodInsn(Opcodes.INVOKESTATIC, LOG_TAG, LOG_METHOD, LOG_METHOD_DESC, false) } } 只要调用了super.visitLabel(handler)就会报下面的错误,是我的写法不对吗