Add missing initialisation in UpgradeStateListener 90/81090/2
authorStephen Kitt <skitt@redhat.com>
Thu, 21 Mar 2019 13:24:21 +0000 (14:24 +0100)
committerFaseela K <faseela.k@ericsson.com>
Tue, 26 Mar 2019 09:22:23 +0000 (09:22 +0000)
UpgradeStateListener depends on IMdsalApiManager and IdManagerService,
has corresponding fields, uses them, but never initialises them.
While this indicates that the corresponding code is probably never
used, it seems better for the time being to add the missing
initialisation.

Change-Id: Ia986d104bba7dcde1e93d696d8c7f522b138f6e6
Signed-off-by: Stephen Kitt <skitt@redhat.com>
natservice/impl/src/main/java/org/opendaylight/netvirt/natservice/internal/UpgradeStateListener.java

index d32b435ac9d6c7fd911c0f9adabdfae8ab7bed4a..fb085c134635d49dbcf83ea3d809b6e1af99f5cf 100644 (file)
@@ -73,6 +73,8 @@ public class UpgradeStateListener extends AbstractClusteredSyncDataTreeChangeLis
         this.txRunner = new ManagedNewTransactionRunnerImpl(dataBroker);
         this.centralizedSwitchScheduler = centralizedSwitchScheduler;
         this.defaultRouteProgrammer = defaultRouteProgrammer;
+        this.mdsalManager = mdsalManager;
+        this.idManager = idManager;
         this.coordinator = coordinator;
         this.naptSwitchHA = naptSwitchHA;
         if (config != null) {