Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

Commit 1d00e12

Browse files
committed
Revert Handle NPE caused by SingleResultCallback based Observables
SCALA-568
1 parent 3dd4213 commit 1d00e12

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/reference/content/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ title = "Changelog"
1010

1111
Changes between released versions
1212

13+
### 2.9.0
14+
* Revert Handle NPE caused by SingleResultCallback based Observables [SCALA-568](https://jira.mongodb.org/browse/SCALA-568F)
15+
1316
### 2.8.0
1417
* Updated MongoDB Driver Async to 3.12.0
1518
* Refined GridFS binary stream interchange in GridFS [SCALA-569](https://jira.mongodb.org/browse/SCALA-569)

driver/src/main/scala/org/mongodb/scala/ObservableImplicits.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,7 @@ trait ObservableImplicits {
442442
subscription.request(1)
443443
}
444444

445-
override def onError(throwable: Throwable): Unit = throwable match {
446-
case npe: NullPointerException => onComplete()
447-
case _ => completeWith("onError", () => observer.onError(throwable))
448-
}
445+
override def onError(throwable: Throwable): Unit = completeWith("onError", () => observer.onError(throwable))
449446

450447
override def onComplete(): Unit = {
451448
completeWith("onComplete", { () =>

0 commit comments

Comments
 (0)