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

Prevent NPE in case delayedPayoutTx is not present (failed trade) #5797

Merged
merged 1 commit into from Nov 4, 2021
Merged

Prevent NPE in case delayedPayoutTx is not present (failed trade) #5797

merged 1 commit into from Nov 4, 2021

Conversation

ghost
Copy link

@ghost ghost commented Nov 2, 2021

If user attempts to open mediation on a failed trade, a NPE occurs because delayedPayoutTx is being accessed when it is null. This fix checks delayedPayoutTx before attempting to use it. If mediation has not been opened already then the ticket is opened.

Fixes #5796

@ghost
Copy link
Author

ghost commented Nov 3, 2021

Patch tested ok with live user issue having no delayedPayoutTx. We were able to open mediation after this fix was applied.

@ripcurlx ripcurlx added this to the v1.8.0 milestone Nov 3, 2021
Copy link
Contributor

@chimp1984 chimp1984 left a comment

Choose a reason for hiding this comment

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

utACK

Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

utACK based on #5797 (review)

@ripcurlx ripcurlx merged commit 851bdcf into bisq-network:master Nov 4, 2021
@ghost ghost mentioned this pull request Nov 18, 2021
@ghost ghost deleted the fix_exception_opening_mediation branch May 29, 2022 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants