diff --git a/netmap/types.go b/netmap/types.go index 1fcdc6e..7821385 100644 --- a/netmap/types.go +++ b/netmap/types.go @@ -335,6 +335,10 @@ func (p *PlacementPolicy) SetContainerBackupFactor(backupFactor uint32) { } func (p *PlacementPolicy) GetReplicas() []Replica { + if p == nil { + return nil + } + return p.replicas }