java.util.NoSuchElementException: None.get]]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

In Scala, don’t use the get method with Option to access a result. Use getOrElse, a match expression, or foreach instead.

java.util.NoSuchElementException: None.get
at scala.None$.get(Option.scala:347)
at scala.None$.get(Option.scala:345)
at views.html.tags.forms.displayCheckbox_Scope0$displayCheckbox.apply(displayCheckbox.template.scala:36)
at views.html.foo.fooForm_Scope0$fooForm.apply(fooForm.template.scala:54)
at views.html.foo.create_Scope0$create$$anonfun$apply$1.apply(create.template.scala:41)
at views.html.foo.create_Scope0$create$$anonfun$apply$1.apply(create.template.scala:40)
at views.html.helper.form_Scope0$form.apply(form.template.scala:35)
at views.html.foo.create_Scope0$create.apply(create.template.scala:40)
at views.html.foo.create_Scope0$create.render(create.template.scala:49)
at views.html.foo.create.render(create.template.scala)

Users with the same issue

14 times, 22 minutes ago
Once, 3 days ago
3 times, 3 weeks ago
Once, 3 weeks ago
Once, 4 weeks ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.