Closed LeonTenorio closed 1 year ago
Why do you need this? The onError
below should handle the null value.
And this PR is changing the current behavior, null value cause that it set _currentHeading
to null originally but now just ignoring null value.
There is something weird, because I have an application that uses that and there is an error because a null check operator on a null value exactly in that line in heading!
. I agree that I changed the behaviour so I will do some changes to adjust that, but for now that point that I have indicated is a problematic one.
I found an explanation about the onError callback that you put and why the error is not executing that, the point is the onError only catches a stream exception, not a exception of the function that is processing a stream value https://stackoverflow.com/questions/69442085/exception-thrown-in-stream-callback-is-not-being-passed-to-onerror-callback
@tlserver I did those changes and now the problem is fixed and the behaviour is the same as the original. Now you can evaluate that.
Just a fix on a error using the heading value and a null check operator