Hi

I found a small bug in the implementation of the ActorProducer. 

I created an Actor (which has the ActorProducer implemented) 
I did not use the actor (I just created it)
When now the system is shutdown the following exception occurs

*Exception:*

java.lang.NullPointerException: null
        at 
akka.stream.actor.ActorProducer$class.aroundPostStop(ActorProducer.scala:237) 
~[akka-stream-experimental_2.10-0.3.jar:na]
        at 
com.jd.hddoc.dispatcher.com.api.ConsumerProducerActor.aroundPostStop(ConsumerProducerActor.scala:7)
 
~[classes/:na]
        at 
akka.actor.dungeon.FaultHandling$class.akka$actor$dungeon$FaultHandling$$finishTerminate(FaultHandling.scala:210)
 
~[akka-actor_2.10-2.3.3.jar:na]

It caused because the state isActive returns true but subscribes is 
uninitialized 

*Sample:*

class ProducerActor() extends  ActorProducer[Int] {...}

    ...
   val system = ActorSystem("serverSystem", serverConf)
   val sourceAndDestination = system.actorOf(Props[ProducerActor])
   system.shutdown()
    ...

Regards

Wolfgang

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to