From b344538f34a6357fe903e4524cb20cf90c6b8d65 Mon Sep 17 00:00:00 2001 From: Kalvin Hom Date: Tue, 16 Apr 2013 15:45:30 -0700 Subject: [PATCH] Fixed bug in HostTracker.retrieveCache() where incorrect variable is being checked for null. https://bugs.opendaylight.org/show_bug.cgi?id=10 Change-Id: I1559b61fbceec69835d9f16c055172a005789c28 Signed-off-by: Kalvin Hom --- .../org/opendaylight/controller/hosttracker/HostTracker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendaylight/hosttracker/src/main/java/org/opendaylight/controller/hosttracker/HostTracker.java b/opendaylight/hosttracker/src/main/java/org/opendaylight/controller/hosttracker/HostTracker.java index 7046e343e7..371dca6969 100644 --- a/opendaylight/hosttracker/src/main/java/org/opendaylight/controller/hosttracker/HostTracker.java +++ b/opendaylight/hosttracker/src/main/java/org/opendaylight/controller/hosttracker/HostTracker.java @@ -201,7 +201,7 @@ public class HostTracker implements IfIptoHost, IfHostListener, logger.debug("Retrieving cache for HostTrackerIH"); inactiveStaticHosts = (ConcurrentMap) this.clusterContainerService .getCache("hostTrackerIH"); - if (hostsDB == null) { + if (inactiveStaticHosts == null) { logger.error("Cache couldn't be retrieved for HostTrackerIH"); } logger.debug("Cache was successfully retrieved for HostTrackerIH"); -- 2.36.6