0
0
panic in collectStoreSlice.Final
This commit is contained in:
Danny Tylman 2016-09-28 13:25:34 +03:00
parent 73d0951b2a
commit fe0151287e

View File

@ -52,7 +52,10 @@ func (c *collectStoreSlice) Final(skip int, fixup collectorFixup) (search.Docume
return nil, err
}
}
return c.slice[skip:], nil
if skip <= len(c.slice) {
return c.slice[skip:], nil
}
return search.DocumentMatchCollection{}, nil
}
func (c *collectStoreSlice) Len() int {