Fix panic when get editor config file (#36241) (#36247)

Fix #36239
Backport #36241
This commit is contained in:
Lunny Xiao
2025-12-27 20:29:22 -08:00
committed by GitHub
parent b71e688634
commit 7d010c6932
5 changed files with 29 additions and 53 deletions
+7 -1
View File
@@ -9,5 +9,11 @@ func (repo *Repository) GetBlob(idStr string) (*Blob, error) {
if err != nil {
return nil, err
}
return repo.getBlob(id)
if id.IsZero() {
return nil, ErrNotExist{id.String(), ""}
}
return &Blob{
ID: id,
repo: repo,
}, nil
}