Open
Description
I think we should not use Option.get
in our code. When the object in question is None
, the error message is a cryptic NoSuchElementException: None.get
. Instead, we should use Option.getOrElse(throw new Exception(exceptionMsg))
so that it is easier to discover where and why the object was None
in the first place.
Metadata
Metadata
Assignees
Labels
No labels