Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.8.0SDK事件解析报空指针异常 #936

Open
zjwei0421 opened this issue Jan 15, 2025 · 2 comments
Open

3.8.0SDK事件解析报空指针异常 #936

zjwei0421 opened this issue Jan 15, 2025 · 2 comments

Comments

@zjwei0421
Copy link

事件类型为:Mint(address,uint256),解析交易事件时在org.fisco.bcos.sdk.v3.codec.wrapper.ContractCodecJsonWrapper#decode(org.fisco.bcos.sdk.v3.codec.wrapper.ABIObject, byte[], boolean)方法内有空指针异常,发生于578行的abiObject.getStructFields().size()
如下图所示:
bug

@kyonRay
Copy link
Member

kyonRay commented Jan 15, 2025

你使用解析的入口函数是哪一个?请提供代码的上下文详细情况。

@zjwei0421
Copy link
Author

入口是:ContractCodec. decodeEvent函数。参考的文档是 https://fisco-bcos-doc.readthedocs.io/zh-cn/latest/docs/sdk/java_sdk/event_sub.html#id8
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants