diff --git a/cmd/global-heal.go b/cmd/global-heal.go index 29a7e6004..da1a55ce4 100644 --- a/cmd/global-heal.go +++ b/cmd/global-heal.go @@ -68,6 +68,9 @@ func newBgHealSequence() *healSequence { } func getLocalBackgroundHealStatus() (madmin.BgHealState, bool) { + if globalBackgroundHealState == nil { + return madmin.BgHealState{}, false + } bgSeq, ok := globalBackgroundHealState.getHealSequenceByToken(bgHealingUUID) if !ok { return madmin.BgHealState{}, false