don’t mask origin NPE when invoking actor

This commit is contained in:
Roland 2012-02-13 22:53:38 +01:00
parent c59e1381ab
commit c316cd4e0b

View file

@ -495,7 +495,7 @@ private[akka] class ActorCell(
dispatcher.reportFailure(new LogEventException(Error(e, self.path.toString, clazz(actor), e.getMessage), e))
// prevent any further messages to be processed until the actor has been restarted
dispatcher.suspend(this)
actor.supervisorStrategy.handleSupervisorFailing(self, children)
if (actor ne null) actor.supervisorStrategy.handleSupervisorFailing(self, children)
parent.tell(Failed(e), self)
} finally {
checkReceiveTimeout // Reschedule receive timeout