Fixes an internal error while force-deleting a bucket (#19614)

This commit is contained in:
Ramon de Klein
2024-04-25 18:27:27 +02:00
committed by GitHub
parent 62c3cdee75
commit 4c0acba62d

View File

@@ -1661,7 +1661,7 @@ func (api objectAPIHandlers) DeleteBucketHandler(w http.ResponseWriter, r *http.
writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMethodNotAllowed), r.URL)
return
}
case rcfg.HasActiveRules("", true):
case rcfg != nil && rcfg.HasActiveRules("", true):
writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMethodNotAllowed), r.URL)
return
}