Skip to content

Commit

Permalink
Fix panic in StorageInfo call (minio#9050)
Browse files Browse the repository at this point in the history
  • Loading branch information
poornas authored Feb 26, 2020
1 parent eac02c0 commit 5d25b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/xl-v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (xl xlObjects) StorageInfo(ctx context.Context, local bool) StorageInfo {
disks = xl.getDisks()
} else {
for _, d := range xl.getDisks() {
if d.Hostname() == "" {
if d != nil && d.Hostname() == "" {
// Append this local disk since local flag is true
disks = append(disks, d)
}
Expand Down

0 comments on commit 5d25b10

Please sign in to comment.