Skip to content

Commit 670cc0a

Browse files
committed
Revert Handle NPE caused by SingleResultCallback based Observables
JAVA-3570
1 parent 1ffe08d commit 670cc0a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,7 @@ trait ObservableImplicits {
9595
subscription.request(1)
9696
}
9797

98-
override def onError(throwable: Throwable): Unit = throwable match {
99-
case npe: NullPointerException => onComplete()
100-
case _ => completeWith("onError", () => observer.onError(throwable))
101-
}
98+
override def onError(throwable: Throwable): Unit = completeWith("onError", () => observer.onError(throwable))
10299

103100
override def onComplete(): Unit = {
104101
completeWith("onComplete", { () =>

0 commit comments

Comments
 (0)