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: avoid NPE in WalletClientSystem by using a binding #23

Merged
merged 1 commit into from
Aug 12, 2021

Conversation

skaldarnar
Copy link
Contributor

preBegin(), despite its description, may be called only after the system already received events to its event handler. In that case, the walletHud was still null and causing an NPE in onUpdateWallet.

By using a binding this NPE is avoided. The binding value can be updated from the event handler even before it was hooked up with the HUD element.

`preBegin()`, despite its description, may be called only after the system already received events to its event handler. In that case, the `walletHud` was still null and causing an NPE in `onUpdateWallet`.

By using a binding this NPE is avoided. The binding value can be updated from the event handler even before it was hooked up with the HUD element.
@skaldarnar skaldarnar added Type: Bug Issues reporting and PRs fixing problems Topic: UI/UX Requests, Issues and Changes related to screens, artwork, sound and overall user experience labels Aug 10, 2021
@jdrueckert jdrueckert merged commit 109b642 into develop Aug 12, 2021
@jdrueckert jdrueckert deleted the fix/walletclientsystem-npe branch August 12, 2021 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Topic: UI/UX Requests, Issues and Changes related to screens, artwork, sound and overall user experience Type: Bug Issues reporting and PRs fixing problems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants