1
0
Fork 0

Fixed invalid read

This commit is contained in:
Michael Hackstein 2015-08-31 16:26:39 +02:00
parent c2b0220fd5
commit b73718400e
1 changed files with 3 additions and 1 deletions

View File

@ -608,7 +608,9 @@ TRI_index_element_t* SkiplistIterator::nextIteration () {
while (true) { // will be left by break
_cursor = _cursor->nextNode();
if (_cursor != interval->_rightEndPoint) {
// Note that _cursor can be nullptr here!
if (_cursor == nullptr) {
return nullptr;
}
break; // we found a next one
}
if (_currentInterval == _intervals.size() - 1) {