java.util.NoSuchElementException: head of empty list

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

Solutions on the web

java.util.NoSuchElementException: head of empty list
at scala.collection.immutable.Nil$.head(List.scala:420)
at me.rexim.morganey.interpreter.MorganeyInterpreter$.computations$lzycompute$1(MorganeyInterpreter.scala:65)
at me.rexim.morganey.interpreter.MorganeyInterpreter$.me$rexim$morganey$interpreter$MorganeyInterpreter$$computations$1(MorganeyInterpreter.scala:65)
at me.rexim.morganey.interpreter.MorganeyInterpreter$.evalNodesComputation(MorganeyInterpreter.scala:68)
at me.rexim.morganey.interpreter.MorganeyInterpreter$.loadFile(MorganeyInterpreter.scala:36)
at me.rexim.morganey.interpreter.MorganeyInterpreter$.evalOneNodeComputation(MorganeyInterpreter.scala:54)
at me.rexim.morganey.Main$$anonfun$2.apply(Main.scala:49)
at me.rexim.morganey.Main$$anonfun$2.apply(Main.scala:48)
at scala.util.Success.flatMap(Try.scala:231)
at me.rexim.morganey.Main$.handleLine(Main.scala:48)
at me.rexim.morganey.Main$$anonfun$3.apply(Main.scala:75)
at me.rexim.morganey.Main$$anonfun$3.apply(Main.scala:75)
at me.rexim.morganey.Main$.startRepl(Main.scala:81)
at me.rexim.morganey.Main$.main(Main.scala:115)
at me.rexim.morganey.Main.main(Main.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sbt.Run.invokeMain(Run.scala:67)
at sbt.Run.run0(Run.scala:61)
at sbt.Run.sbt$Run$$execute$1(Run.scala:51)
at sbt.Run$$anonfun$run$1.apply$mcV$sp(Run.scala:55)
at sbt.Run$$anonfun$run$1.apply(Run.scala:55)
at sbt.Run$$anonfun$run$1.apply(Run.scala:55)
at sbt.Logger$$anon$4.apply(Logger.scala:85)
at sbt.TrapExit$App.run(TrapExit.scala:248)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

3 times, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 3 weeks ago
Samebug visitor profile picture
Unknown user
Once, 3 weeks ago
3 times, 5 months ago
2 times, 6 months ago
7 more bugmates

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