Satish K
Committed by Gerrit Code Review

TunnelStore_functionalIssue

Change-Id: Id481538915efb2a4fa8196c3df07f0820acb904d
......@@ -290,9 +290,10 @@ public class DistributedTunnelStore
TunnelSubscription order = new TunnelSubscription(appId, null, null, tunnelId, null, null,
annotations);
Tunnel result = tunnelIdAsKeyStore.get(tunnelId);
if (result != null || Tunnel.State.INACTIVE.equals(result.state())) {
if (result == null || Tunnel.State.INACTIVE.equals(result.state())) {
return null;
}
orderSet.add(order);
orderRelationship.put(appId, orderSet);
return result;
......