Null cache exception in FlatMap
See original GitHub issueI’m currently updating a project that was written under Binding.scala 10.0.3 (and compiled/ran fine) to 11.8.1. Updating the library caused a null error to surface that previously wasn’t there.
Specifically, in line 408 of Binding.scala, oldCache
is null
.
Looking through the changes to the relevant code since 10.0.03, I can see that this commit added a cache which is initialised to null
.
Either there was some invariant that meant that oldCache
should never be null
(in which I need to fix my code) or a null check needs to be made.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8
Top Results From Across the Web
rx java - Handling null in RxJava2 - Stack Overflow
For instance, in my app I have an in-memory cache: @Nullable CacheItem findCacheItem(long id); CacheItem might not be present in cache, so method...
Read more >2.x: Handling null values · Issue #4644 · ReactiveX/RxJava
So with this approach, I might get null in my stream which is totally valid situation, so it is handled properly on receiving...
Read more >Flux (reactor-core 3.5.1)
Returns that value, or null if the Flux completes empty. In case the Flux errors, the original exception is thrown (wrapped in a...
Read more >Handling Exceptions in Project Reactor - Baeldung
As required by the specification, Reactor throws a NullPointerException when a null value reaches the map function. Therefore, there's nothing ...
Read more >Promise (Ratpack API (2.0.0-rc-1))
A promise is a representation of a value which will become available later. Methods such as map(Function) , flatMap(Function) , cache() etc.) allow...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Recursive code layout does not matter. What matters here is to avoid recursive Var changes.
Yang, Bo pop.atry@gmail.com于2019年7月20日 周六下午1:54写道:
– 杨博 (Yang, Bo)
The oninput handler and the Future block are functions other than the @dom function. You know, their return types are not Binding, and they will be not triggered by Var or Vars changes.
Basim Khajwal notifications@github.com于2019年7月20日 周六下午12:52写道:
– 杨博 (Yang, Bo)