mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-26 05:41:08 +01:00
ONOS-6415: NPE in Topo2Jsonifier
- check made for returned backing host being null. Change-Id: Ib7df17c45d4b39a85662ec5e37dab4821da8225d (cherry picked from commit 0a9b5a1c1d4f21a4426b1d2e62d1e951a38c2c04)
This commit is contained in:
parent
39037cb50b
commit
5b83ac2be4
@ -568,9 +568,12 @@ public class Topo2Jsonifier {
|
|||||||
// TODO: complete host details
|
// TODO: complete host details
|
||||||
Host h = host.backingHost();
|
Host h = host.backingHost();
|
||||||
|
|
||||||
|
// h will be null, for example, after a HOST_REMOVED event
|
||||||
|
if (h != null) {
|
||||||
addIps(node, h);
|
addIps(node, h);
|
||||||
addProps(node, h);
|
addProps(node, h);
|
||||||
addGeoGridLocation(node, h);
|
addGeoGridLocation(node, h);
|
||||||
|
}
|
||||||
addMetaUi(node, ridStr, host.idAsString());
|
addMetaUi(node, ridStr, host.idAsString());
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user