Unfortunately, throwing a NPE when seeing a null value in the AbstractSubscription class had some unintended consequences.
Any async method that returns Void (eg Start transaction, abort transaction etc..) and find()#first() all would throw a NPE. A hotfix had to be implemented in SCALA-555 and JAVARS-209 to work around the limitation but there may be edge cases where NPE's can still be raised.
Given that we are in control of providing the data to consumers, throwing a NPE is unhelpful and prevents the normal flow of Observables.
- is related to
-
JAVA-3279 distinct on using non-sparse index throws NPE
- Closed