fix all iterator
This commit is contained in:
parent
1099969591
commit
5d3a4a4a8f
1 changed files with 3 additions and 0 deletions
|
|
@ -152,6 +152,9 @@ func (it *AllIterator) Result() graph.Value {
|
|||
if it.offset >= len(it.buffer) {
|
||||
return nil
|
||||
}
|
||||
if it.buffer[it.offset] == nil {
|
||||
return nil
|
||||
}
|
||||
return &Token{bucket: it.bucket, key: it.buffer[it.offset]}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue