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
java.lang.NullPointerException
at Main$stateMachine$macro$1$1.resume(Main.scala:9)
at Main$stateMachine$macro$1$1.apply(Main.scala:9)
at Main$stateMachine$macro$1$1.apply(Main.scala:9)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
at scala.concurrent.impl.ExecutionContextImpl$AdaptedForkJoinTask.exec(ExecutionContextImpl.scala:121)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.pollAndExecAll(ForkJoinPool.java:1253)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1346)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
If extends AnyVal is removed from A, it runs successfully. It also works if the enclosed type is an Int instead of a BigInt.
Scala version: 2.11.2
scala-async version: 0.9.2
The text was updated successfully, but these errors were encountered:
Sorry, I might be having a slightly different problem, as I'm not using a nested await(). But I get an identical stack trace from this code, on Scala 2.11.2 and async 0.9.2.
Running this code:
results in an NPE:
If
extends AnyVal
is removed fromA
, it runs successfully. It also works if the enclosed type is anInt
instead of aBigInt
.Scala version: 2.11.2
scala-async version: 0.9.2
The text was updated successfully, but these errors were encountered: