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:
@@ -36,6 +36,12 @@ public class Cursor {
|
|||||||
public Object next()
|
public Object next()
|
||||||
throws SQLException
|
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 {
|
// try {
|
||||||
do {
|
do {
|
||||||
if (result == null) {
|
if (result == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user