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

Fix dynamic array decode null pointer #1974

Conversation

lzgh0102
Copy link
Contributor

What does this PR do?

fix decodeDynamicStructElements NPE
lower version codegen does not generate @parameterized annotation when use DynamicArray parameter, which will cause the error as below that confuse people
image

Where should the reviewer start?

use the test case: org.web3j.abi.FunctionReturnDecoderTest#testDecodeDynamicStruct3
remove the Annotation can see the case
image

Why is it needed?

#1726 (comment)

Copy link
Contributor

@NickSneo NickSneo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@NickSneo NickSneo merged commit 919e93e into hyperledger-web3j:master Oct 19, 2023
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants