Skip to content

Commit 0332bf7

Browse files
authored
Update Implicits.scala
1 parent 13d4fb4 commit 0332bf7

File tree

1 file changed

+1
-1
lines changed
  • streampark-common/src/main/scala/org/apache/streampark/common/util

1 file changed

+1
-1
lines changed

streampark-common/src/main/scala/org/apache/streampark/common/util/Implicits.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ object Implicits extends ToScalaImplicits with ToJavaImplicits with DecorateAsJa
5555

5656
implicit class AutoCloseImplicits[T <: AutoCloseable](autoCloseable: T) {
5757
implicit def using[R](func: T => R)(implicit excFunc: Throwable => R = null): R = {
58-
var exception: Option[Throwable] = null
58+
var exception: Option[Throwable] = Option.empty
5959
try {
6060
func(autoCloseable)
6161
} catch {

0 commit comments

Comments
 (0)