Skip to content

Instantly share code, notes, and snippets.

@divarvel
Created January 22, 2012 18:50
Show Gist options
  • Save divarvel/1658179 to your computer and use it in GitHub Desktop.
Save divarvel/1658179 to your computer and use it in GitHub Desktop.
scala> MongoDBObject("foo" -> None).getAs[String]("foo")
res0: Option[String] = Some(None)
scala> MongoDBObject("foo" -> null).getAs[String]("foo")
res0: Option[String] = None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment