Fix NPEs in SQL Next and Contains

This commit is contained in:
Quentin Machu 2015-08-26 01:19:28 -04:00
parent ebaf8b2a98
commit 7ddeb101ca
2 changed files with 11 additions and 1 deletions

View file

@ -131,6 +131,9 @@ func (it *AllIterator) Next() bool {
graph.NextLogIn(it)
if it.cursor == nil {
it.makeCursor()
if it.cursor == nil {
return false
}
}
if !it.cursor.Next() {
glog.V(4).Infoln("sql: No next")