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: Prevent realmTransfers NullPointerException with coroutines #126

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

LouisCAD
Copy link
Contributor

Instead of depending on an init order that doesn't always happen as wanted, and having the !! footgun, we are leveraging coroutines to wait (if needed), until the instance we need is initialized.

@LouisCAD LouisCAD force-pushed the fix-realm-init-order branch from 6bb3e94 to bc3dd64 Compare December 17, 2024 09:59
@sirambd sirambd changed the title Fix realmTransfers NullPointerException with coroutines fix: Prevent realmTransfers NullPointerException with coroutines Dec 17, 2024
@sirambd sirambd enabled auto-merge December 17, 2024 13:21
Instead of depending on an init order that doesn't always happen as wanted,
and having the !! footgun, we are leveraging coroutines to wait (if needed),
until the instance we need is initialized.
@LouisCAD LouisCAD force-pushed the fix-realm-init-order branch from bc3dd64 to 5772e3a Compare December 17, 2024 13:26
@sirambd sirambd merged commit 727847e into main Dec 17, 2024
6 checks passed
@sirambd sirambd deleted the fix-realm-init-order branch December 17, 2024 13:27
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