From: Kalvin Hom Date: Tue, 16 Apr 2013 22:45:30 +0000 (-0700) Subject: Fixed bug in HostTracker.retrieveCache() X-Git-Tag: releasepom-0.1.0~561^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=b344538f34a6357fe903e4524cb20cf90c6b8d65;ds=sidebyside 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 --- 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");