Fixing NullPointerException. 43/83243/4
authorDimple Jain <dimple.jain@ericsson.com>
Thu, 25 Jul 2019 05:59:05 +0000 (11:29 +0530)
committerDimple J <dimple.jain@ericsson.com>
Thu, 1 Aug 2019 05:12:57 +0000 (05:12 +0000)
ITM was not processing the parked NC event due to a wrong lookup.
As a result all the parked NC events were lost.

Change-Id: Ie6ca0a603c83de778c6741abdeefe3b345a48555
Signed-off-by: Dimple Jain <dimple.jain@ericsson.com>
itm/itm-impl/src/main/java/org/opendaylight/genius/itm/cache/DpnTepStateCache.java

index 72b125f8d807bf445514e42bf8f3640fe66512cc..dd2fe84482f1e3f28dd71034f29eb7f2de24c893 100644 (file)
@@ -136,7 +136,7 @@ public class DpnTepStateCache extends DataObjectCache<BigInteger, DpnsTeps> {
                 }
 
                 if (tunnelStateInfoNew.getDstDpnTepsInfo() == null) {
-                    String dstDpnId = tunnelStateInfo.getTunnelEndPointInfo().getDstEndPointInfo();
+                    String dstDpnId = tunnelStateInfoNew.getTunnelEndPointInfo().getDstEndPointInfo();
                     try (Acquired lock = directTunnelUtils.lockTunnel(dstDpnId)) {
                         LOG.debug("Destination DPNTepsInfo is null for tunnel {}. Hence Parking with key {}",
                             remoteDpns.getTunnelName(), dstDpnId);