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:
Simon Hunt 2017-05-16 10:53:43 -07:00
parent 39037cb50b
commit 5b83ac2be4

View File

@ -568,9 +568,12 @@ public class Topo2Jsonifier {
// TODO: complete host details
Host h = host.backingHost();
// h will be null, for example, after a HOST_REMOVED event
if (h != null) {
addIps(node, h);
addProps(node, h);
addGeoGridLocation(node, h);
}
addMetaUi(node, ridStr, host.idAsString());
return node;