mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-04-05 20:52:50 +08:00
avoid invalid memory address or nil pointer dereference
This commit is contained in:
parent
9ae66f55fc
commit
9438738693
@ -260,7 +260,7 @@ func (v *Volume) collectStatus() (maxFileKey types.NeedleId, datFileSize int64,
|
||||
defer v.dataFileAccessLock.RUnlock()
|
||||
glog.V(3).Infof("collectStatus volume %d", v.Id)
|
||||
|
||||
if v.nm == nil {
|
||||
if v.nm == nil || v.DataBackend == nil {
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user