Handle the case of empty optional capabilities 95/92095/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 27 Jul 2020 17:02:56 +0000 (19:02 +0200)
committerVenkatrangan Govindarajan <gvrangan@gmail.com>
Tue, 18 Aug 2020 10:27:01 +0000 (10:27 +0000)
commit7d49f42099f6215d269de4d66986bfcb07a173a1
treec90e6a50a7497fa35fcc7df293c175a53bba0b7c
parente956a9c790435d2589b082553283aa2100c8cfcd
Handle the case of empty optional capabilities

Empty lists are being squashed to null, hence use nonnull to acquire
an empty list back.

JIRA: BGPCEP-915
Change-Id: I6483160e3637d3901e9a1f840cef03dd817b5523
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 2af34886dfd5ec01b8411683c2415392d98d4e8c)
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/StrictBGPPeerRegistry.java