Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Vault
Commits
f94e7e31
Commit
f94e7e31
authored
7 years ago
by
Brian Kassouf
Committed by
Vishal Nayak
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
helper/storagepacker: Fix panic when bucket doesn't exist (#3875)
parent
15982cfa
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
helper/storagepacker/storagepacker.go
+3
-0
helper/storagepacker/storagepacker.go
with
3 additions
and
0 deletions
+3
-0
helper/storagepacker/storagepacker.go
+
3
-
0
View file @
f94e7e31
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help