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: tokenClaimAirdrop throws NPE on null sender or receiver (cherry-pick) #17115

Conversation

kimbor
Copy link
Member

@kimbor kimbor commented Dec 18, 2024

Description:
When submitting a tokenClaimAirdrop transaction, if one of the PendingAirdropIds in the list has an empty senderId or receiverId then the transaction fails catastrophically. This PR fixes the problem and add unit tests and hapi tests to verify the fix.

Related issue(s):
Fixes #17095
This PR is a cherry-pick of PR #17096

vtronkov and others added 27 commits October 31, 2024 15:09
)

Signed-off-by: Valentin Tronkov <99957253+vtronkov@users.noreply.github.com>
…tation (#16195)

Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
…ontract Implementation (#16196)

Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
…tleEnabled default to true (#16366)

Signed-off-by: Derek Riley <derek.riley@swirldslabs.com>
Signed-off-by: David S Bakin <117694041+david-bakin-sl@users.noreply.github.com>
…od implementation (#16443)

Signed-off-by: David S Bakin <117694041+david-bakin-sl@users.noreply.github.com>
Signed-off-by: Edward Wertz <edward@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
Signed-off-by: Oleg Mazurov <oleg.mazurov@swirldslabs.com>
Signed-off-by: Iris Simon <iris.simon@swirldslabs.com>
…16514)

Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
Signed-off-by: Lev Povolotsky <lev@swirldslabs.com>
Signed-off-by: Iris Simon <iris.simon@swirldslabs.com>
Signed-off-by: Stanimir Stoyanov <stanimir.stoyanov@limechain.tech>
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
Signed-off-by: Iris Simon <iris.simon@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Co-authored-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Iris Simon <iris.simon@swirldslabs.com>
Co-authored-by: Iris Simon <iris.simon@swirldslabs.com>
Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
…tring-as-bytes and actual SHA2-384 hash bytes for Node entries. (#16659)

Signed-off-by: Joseph Sinclair <joseph.sinclair@swirldslabs.com>
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
Co-authored-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
#16666)

Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
…ectory (#16753)

Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
…16852)

Signed-off-by: Kim Rader <kim.rader@swirldslabs.com>
…ansaction

Signed-off-by: Kim Rader <kim.rader@swirldslabs.com>
@kimbor kimbor added this to the v0.56 milestone Dec 18, 2024
@kimbor kimbor self-assigned this Dec 18, 2024
@kimbor kimbor requested a review from a team as a code owner December 18, 2024 15:41
@kimbor kimbor requested a review from a team as a code owner December 18, 2024 15:41
@kimbor kimbor requested a review from derektriley December 18, 2024 15:41
@kimbor kimbor changed the base branch from release/0.56 to release/0.58 December 18, 2024 16:15
@kimbor kimbor closed this Dec 18, 2024
@kimbor kimbor deleted the 17095-tokenClaimAirdop-empty-sender-or-receiver-cherry-pick-056 branch December 18, 2024 16:55
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.