diff --git a/snapshots/manager.go b/snapshots/manager.go index 8d10dcc9c713..dbca39ea2be7 100644 --- a/snapshots/manager.go +++ b/snapshots/manager.go @@ -70,6 +70,9 @@ var ErrOptsZeroSnapshotInterval = errors.New("snaphot-interval must not be 0") // NewManager creates a new manager. func NewManager(store *Store, opts types.SnapshotOptions, multistore types.Snapshotter, extensions map[string]types.ExtensionSnapshotter, logger log.Logger) *Manager { + if extensions == nil { + extensions = map[string]types.ExtensionSnapshotter{} + } return &Manager{ store: store, opts: opts,