This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch 1.0.x
in repository https://gitbox.apache.org/repos/asf/pekko.git
The following commit(s) were added to refs/heads/1.0.x by this push:
new 97ed19707c fix: only setFailed when actor not null (#1399) (#1402)
97ed19707c is described below
commit 97ed19707cd5d548ac42d28920ed2b7b68a93a6e
Author: AndyChen(Jingzhang) <[email protected]>
AuthorDate: Fri Jul 19 18:09:46 2024 +0800
fix: only setFailed when actor not null (#1399) (#1402)
* fix: only setFailed when actor not null
* chore: use ne rather than !=
---
actor/src/main/scala/org/apache/pekko/actor/ActorCell.scala | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/actor/src/main/scala/org/apache/pekko/actor/ActorCell.scala
b/actor/src/main/scala/org/apache/pekko/actor/ActorCell.scala
index 490ba64a11..1838399965 100644
--- a/actor/src/main/scala/org/apache/pekko/actor/ActorCell.scala
+++ b/actor/src/main/scala/org/apache/pekko/actor/ActorCell.scala
@@ -661,8 +661,7 @@ private[pekko] class ActorCell(
Thread.currentThread().interrupt()
throw ActorInitializationException(self, "interruption during
creation", e)
case NonFatal(e) =>
- if (actor == null) setFailed(system.deadLetters)
- else setFailed(actor.self)
+ if (actor ne null) setFailed(actor.self)
failActor()
e match {
case i: InstantiationException =>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]