Browse Source

avoid invalid memory address or nil pointer dereference

pull/2931/head
Konstantin Lebedev 3 years ago
parent
commit
9438738693
  1. 2
      weed/storage/volume.go

2
weed/storage/volume.go

@ -260,7 +260,7 @@ func (v *Volume) collectStatus() (maxFileKey types.NeedleId, datFileSize int64,
defer v.dataFileAccessLock.RUnlock() defer v.dataFileAccessLock.RUnlock()
glog.V(3).Infof("collectStatus volume %d", v.Id) glog.V(3).Infof("collectStatus volume %d", v.Id)
if v.nm == nil {
if v.nm == nil || v.DataBackend == nil {
return return
} }

Loading…
Cancel
Save