Commit f94e7e31 authored by Brian Kassouf's avatar Brian Kassouf Committed by Vishal Nayak
Browse files

helper/storagepacker: Fix panic when bucket doesn't exist (#3875)

parent 15982cfa
No related merge requests found
Showing with 3 additions and 0 deletions
+3 -0
......@@ -254,6 +254,9 @@ func (s *StoragePacker) GetItem(itemID string) (*Item, error) {
if err != nil {
return nil, errwrap.Wrapf("failed to read packed storage item: {{err}}", err)
}
if bucket == nil {
return nil, nil
}
// Look for a matching storage entry in the bucket items
for _, item := range bucket.Items {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment