scala> def x: java.math.BigDecimal = null
x: java.math.BigDecimal
scala> Option(x)
res6: Option[java.math.BigDecimal] = None
scala> Option[BigDecimal](x)
java.lang.NullPointerException
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.