BUG-3419 : fix calling get() on Absent value 53/22453/5
authorIveta Halanova <iveta.halanova@pantheon.sk>
Fri, 12 Jun 2015 11:43:05 +0000 (13:43 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 12 Jun 2015 13:10:00 +0000 (13:10 +0000)
commitb82a21dc74f5ff8c5e007af67435dd76ca93b573
tree098e71a537b3fa3b56322f591b7fffd60f9fba9e
parent1114255dc1be6586cef529178e1b1b3078f15b71
BUG-3419 : fix calling get() on Absent value

When BGP shuts down, LocRIB receives and uptodate
change with no data attached causing an Exception.
Fix this by checking existence of the data.

Change-Id: Ibe1aeb8e7f02136be2c83be516e47833c1d8146a
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>
Signed-off-by: Iveta Halanova <iveta.halanova@pantheon.sk>
(cherry-picked from 117ee238c19162335c50ef85114b05e87d50b538)
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/ApplicationPeer.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/LocRibWriter.java