-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Sinks.One<Void>.tryEmitValue no longer accepts null in 3.4.25/3.5.0 #3284
Comments
This was working in 3.5.0-RC1 but is broken in 3.5.0. The change is 849be9a207958b111ee7a06f4b21596b0122972f. |
this is actually a regression introduced in the |
Regression introduced in #3260 |
simplest workaround: T value;
EmitResult er = (value == null) ? sink.tryEmitEmpty() : sink.tryEmitValue(value); |
Thank you for jumping on this so quickly, @simonbasle |
Calling
tryEmitValue(null)
on aSinks.One<Void>
worked without issue in 3.4.24, but in 3.5.0, we can see a NPE:The Javadocs for tryEmitValue still indicate that null is a legitimate value:
The important change may have been in SinkOneMulticast.tryEmitValue. in 3.4.24 this has special handling for null:
while in 3.5.0 it doesn't, it just passes the null through:
I can't find any mention of this change in the release notes, and it's a breaking one for us. Can you please confirm if this is intentional or a bug, e.g. do I need to patch our code?
The text was updated successfully, but these errors were encountered: