Skip to content
Permalink
Browse files
fix(cleanup): panic: runtime error: invalid memory address or nil poi…
…nter dereference
  • Loading branch information
alexey-igrychev committed Oct 20, 2021
1 parent f97b338 commit 9024c5c393ae07901766fa46065e4ce9ea2239e3
Showing with 4 additions and 0 deletions.
  1. +4 −0 pkg/cleaning/stage_manager/manager.go
@@ -148,6 +148,10 @@ func GetCustomTagsMetadata(ctx context.Context, storageManager manager.StorageMa
var mutex sync.Mutex
stageIDCustomTagList = make(map[string][]string)
err = storageManager.ForEachGetStageCustomTagMetadata(ctx, stageCustomTagMetadataIDs, func(ctx context.Context, metadataID string, metadata *storage.CustomTagMetadata, err error) error {
if err != nil {
return err
}

mutex.Lock()
defer mutex.Unlock()

0 comments on commit 9024c5c

Please sign in to comment.