We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10f6889 commit 6cbe502Copy full SHA for 6cbe502
library/src/scala/math/BigDecimal.scala
@@ -344,7 +344,7 @@ object BigDecimal {
344
implicit def double2bigDecimal(d: Double): BigDecimal = decimal(d)
345
346
/** Implicit conversion from `java.math.BigDecimal` to `scala.BigDecimal`. */
347
- implicit def javaBigDecimal2bigDecimal(x: BigDec): BigDecimal = apply(x)
+ implicit def javaBigDecimal2bigDecimal(x: BigDec): BigDecimal = if (x == null) null else apply(x)
348
}
349
350
/**
0 commit comments