BUG-4780: New peers failed to connect after one gets connected
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / PeerExportGroup.java
index d57a10f9b1c6432ff9b33c0da5e6a86b9f32c392..e4777978b517096b1eadc20ba2f239e3ced8d497 100644 (file)
@@ -31,7 +31,7 @@ final class PeerExportGroup {
     }
 
     ContainerNode effectiveAttributes(final PeerId sourcePeerId, final ContainerNode attributes) {
-        return policy.effectiveAttributes(peerRoles.get(sourcePeerId), attributes);
+        return attributes == null ? null :  policy.effectiveAttributes(peerRoles.get(sourcePeerId), attributes);
     }
 
     Collection<Entry<PeerId, YangInstanceIdentifier>> getPeers() {