You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The purpose of the signature for Option.orNull is to prevent you from attempting to make non-nullable types (e.g. Int) null (I believe). You can still use Option.getOrElse(null) from Java though.
Scala options are a pain to use in java, but they would be much more pleasant if you could orNull them. As it is today, they blow up with things like:
The text was updated successfully, but these errors were encountered: