Handle the case of empty optional capabilities 85/91685/6
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 27 Jul 2020 17:02:56 +0000 (19:02 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 29 Jul 2020 17:24:45 +0000 (17:24 +0000)
commit2af34886dfd5ec01b8411683c2415392d98d4e8c
tree7fdfd8d93c553a382ba2a7ff7cf6f61940eca47f
parented98c8747a638c2241d050102db6e34d38c1cb08
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>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/StrictBGPPeerRegistry.java