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

Minor enhancement to avoid null exceptions. #1533

Open
kzu opened this issue Feb 18, 2025 · 1 comment
Open

Minor enhancement to avoid null exceptions. #1533

kzu opened this issue Feb 18, 2025 · 1 comment

Comments

@kzu
Copy link
Member

kzu commented Feb 18, 2025

Discussed in #1529

Originally posted by iPazooki February 6, 2025
In the AwaitableFactory.cs file, the TryGet method may return null, which is not considered good practice. To address this issue and prevent potential null reference exceptions, I recommend changing the return type to IAwaitableFactory?. This indicates that the return value can be nullable, alerting developers that they need to handle this scenario appropriately. Subsequently, we need to change five more places because of this change which is not a big deal.

Back this issue
Back this issue

@ndwpatrick
Copy link

Hi @kzu I'm interested in working on this issue. Can I take it? Also, could you provide any additional details if needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants