Fix null pointer dereference in status.ByIndex #628

Merged
mbfr merged 7 commits from fix-status-nullptr into master 2020-08-14 13:19:21 -05:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit e22f95bd3c - Show all commits

View File

@ -81,7 +81,7 @@ func TestStatusNothing(t *testing.T) {
checkFatal(t, err)
if entryCount != 0 {
t.Error("expected no statuses in empty repo")
t.Fatal("expected no statuses in empty repo")
}
_, err = statusList.ByIndex(0)