Bug 6604 - Fix NPE in AbstractBgpTopologyProvider#topologyTypeFilter 61/45061/2
authorMilos Fabian <milfabia@cisco.com>
Thu, 1 Sep 2016 08:39:52 +0000 (10:39 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 2 Sep 2016 12:08:52 +0000 (12:08 +0000)
commit90a0e0d23d09ed3d81b2584b1787d2cacd9b0421
tree684358ae306f95102cb874f51f88c0f8b68f1453
parent63cdd3a92f88861b909c4d255200a820add193b1
Bug 6604 - Fix NPE in AbstractBgpTopologyProvider#topologyTypeFilter

The BGP topology provider is not the only ODL component which is writing to
config DS network-topology node (i.e. netconf-topology).

Make the code more defensive to avoid NPE when filtering topologies' configuration
without topology-type container.

Change-Id: I493759ce23277ac6b4c5f15653708c853426e56b
Signed-off-by: Milos Fabian <milfabia@cisco.com>
(cherry picked from commit 9cfa9f12dbc439cc8fde08794db823de534d5366)
bgp/topology-provider/src/main/java/org/opendaylight/bgpcep/bgp/topology/provider/config/AbstractBgpTopologyProvider.java