diff --git a/projects/samskivert/src/java/com/samskivert/jdbc/jora/Cursor.java b/projects/samskivert/src/java/com/samskivert/jdbc/jora/Cursor.java index b581211a..bfb3f12d 100644 --- a/projects/samskivert/src/java/com/samskivert/jdbc/jora/Cursor.java +++ b/projects/samskivert/src/java/com/samskivert/jdbc/jora/Cursor.java @@ -36,9 +36,9 @@ 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) { + // if we closed everything up after the last call to next(), + // nTables will be zero here and we should bail immediately + if (nTables == 0) { return null; }