If we call next() after a previous call to next() returned null, we need

to notice that and continue to return null rather than choking.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@564 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2002-02-05 22:25:49 +00:00
parent 09cb8afb44
commit 944eedbfa4
@@ -36,6 +36,12 @@ public class Cursor {
public Object next()
throws SQLException
{
// if we closed everything up after the last call to next(), we'll
// have a null table here and should bail immediately
if (table == null) {
return null;
}
// try {
do {
if (result == null) {