Ellpeck / Coroutine

A simple implementation of Unity's Coroutines to be used for any C# project
https://www.nuget.org/packages/Coroutine
MIT License
37 stars 3 forks source link

CoroutineHandlerInstance.GetEventCoroutines can return null #19

Closed Shadowblitz16 closed 1 year ago

Shadowblitz16 commented 1 year ago

CoroutineHandlerInstance.GetEventCoroutines can return null causing problems down the line.

Consider turning on strict nullable checking to see the warnings or errors

Ellpeck commented 1 year ago

GetEventCoroutines is a private method that is designed to be able to return null. Coroutine doesn't (yet) use nullable reference types, which is why there aren't any additional annotations or anything to signify this.

Feel free to report an issue if you run into any crashes related to this, of course!