Be mindful of non-existent actors 72/97572/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 21 Sep 2021 09:49:06 +0000 (11:49 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 21 Sep 2021 09:49:06 +0000 (11:49 +0200)
commit6481a3188fb6a6027f088aa4d2d8834007505ff7
tree91bec115be4c2938caef0d6330e8a7a112ed6c77
parent1def87ee24e57b97bce49a61fbff03f13b7caf46
Be mindful of non-existent actors

We have observed the following splat in SFT:

java.lang.NullPointerException: null
        at org.opendaylight.controller.eos.akka.registry.listener.type.EntityTypeListenerRegistry.onUnregisterListener(EntityTypeListenerRegistry.java:69) ~[bundleFile:?]
        at akka.actor.typed.javadsl.BuiltReceive.receive(ReceiveBuilder.scala:213) ~[bundleFile:?]

This this by checking whether we actually removed a listener.

Change-Id: Ifc80ae650db05fd1031af074c694588034f6903a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/eos-dom-akka/src/main/java/org/opendaylight/controller/eos/akka/registry/listener/type/EntityTypeListenerRegistry.java