diff --git a/rows.go b/rows.go index d43a015040..f5f2dad603 100644 --- a/rows.go +++ b/rows.go @@ -296,6 +296,9 @@ func (f *File) getFromStringItem(index int) string { return strconv.Itoa(index) } offsetRange := f.sharedStringItem[index] + if len(offsetRange) < 2 { + return "" + } buf := make([]byte, offsetRange[1]-offsetRange[0]) if _, err := f.sharedStringTemp.ReadAt(buf, int64(offsetRange[0])); err != nil { return strconv.Itoa(index)