From: Tomas Cere Date: Thu, 10 Dec 2015 13:09:47 +0000 (+0100) Subject: Fix missing NetconfNotificationCollector service X-Git-Tag: release/beryllium~64^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=fb9b5a683d7925006bd519dd0972243d2ab2f785;p=netconf.git Fix missing NetconfNotificationCollector service Change-Id: Icac4957a2e68499cc2a438e4ea3b516d725a4854 Signed-off-by: Tomas Cere --- diff --git a/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/NetconfImplActivator.java b/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/NetconfImplActivator.java index e62089601b..7512f2616b 100644 --- a/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/NetconfImplActivator.java +++ b/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/netconf/impl/osgi/NetconfImplActivator.java @@ -72,7 +72,7 @@ public class NetconfImplActivator implements BundleActivator { new ServiceTracker<>(context, NetconfNotificationCollector.class, new ServiceTrackerCustomizer() { @Override public NetconfNotificationCollector addingService(ServiceReference reference) { - Preconditions.checkState(listenerReg != null, "Notification collector service was already added"); + Preconditions.checkState(listenerReg == null, "Notification collector service was already added"); listenerReg = context.getService(reference).registerBaseNotificationPublisher(); monitoringService.setNotificationPublisher(listenerReg); return null;