fix all iterator

This commit is contained in:
Barak Michener 2014-08-11 21:25:32 -04:00
parent 1099969591
commit 5d3a4a4a8f

View file

@ -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]}
}