Bug: next() will never be called in this case.