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

UnityHttpRequest event invocation null references #16

Open
borntocompile opened this issue Jul 26, 2019 · 0 comments
Open

UnityHttpRequest event invocation null references #16

borntocompile opened this issue Jul 26, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@borntocompile
Copy link
Contributor

The UnityHttpRequest on update progress event action is not null checked. This means if you call the Send method on UnityHttpRequest without adding a listener to Download or Upload progress changed event then you will get a null reference. This event should not be a requirement of a UnityHttpRequest.
To fix this we can use null propagation on the event before Invoking.

@borntocompile borntocompile added the bug Something isn't working label Jul 26, 2019
@borntocompile borntocompile changed the title [Bug] UnityHttpRequest event invocation null references UnityHttpRequest event invocation null references Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant