Last active
May 2, 2017 15:35
-
-
Save johanandren/35bdebef9d3a084a8f7dc88070485767 to your computer and use it in GitHub Desktop.
Trying to reproduce http://stackoverflow.com/questions/43585498/akka-unstashall-generate-java-lang-nullpointerexception
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import akka.actor.{Actor, ActorSystem, Props, Stash} | |
class MyActor extends Actor with Stash { | |
def receive = { | |
case _ => | |
unstashAll() | |
println("after unstashAll") | |
} | |
} | |
object StashFailApp extends App { | |
val system = ActorSystem() | |
val ref = system.actorOf(Props(classOf[MyActor])) | |
ref ! "boom" | |
ref ! "bang" | |
ref ! "kaboom" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment