scala> def f(x:String) = null f: (x: String)Null scala> Some("abc") flatMap (x => Option(f(x))) res0: Option[Null] = None
Other options:
no subject