diff --git a/pkg/server/server.go b/pkg/server/server.go index 78f18ad5b..6207e8a8d 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -2041,6 +2041,9 @@ func getMacMobilityExtendedCommunity(etag uint32, mac net.HardwareAddr, evpnPath }, 0) for _, path := range evpnPaths { + if path == nil { + continue + } nlri := path.GetNlri().(*bgp.EVPNNLRI) target, ok := nlri.RouteTypeData.(*bgp.EVPNMacIPAdvertisementRoute) if !ok {