Merge pull request #166 from kortschak/issue163
Ensure we don't examine empty token
This commit is contained in:
commit
9ae13957b3
1 changed files with 1 additions and 1 deletions
|
|
@ -271,7 +271,7 @@ func (it *Iterator) Contains(v graph.Value) bool {
|
|||
return false
|
||||
}
|
||||
offset := PositionOf(val, it.dir, it.qs)
|
||||
if bytes.HasPrefix(val.key[offset:], it.checkID) {
|
||||
if len(val.key) != 0 && bytes.HasPrefix(val.key[offset:], it.checkID) {
|
||||
// You may ask, why don't we check to see if it's a valid (not deleted) quad
|
||||
// again?
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue