DataSoft/Nova — Issue #76: SuspectTableIterator Begin/End Segfaults
Author: PherricOxide
Created: 2012-03-09 20:13:16+00:00
State: open

On an empty SuspectTable, calling SuspectTable.End() results in a segfault. This is because SuspectTableIterator.Previous() and SuspectTableIterator.Next() fail on an empty table.

[Code causing the problem is here](https://github.com/DataSoft/Nova/blob/8c0802c806af6ce18a51db3c57a72277b91cd2be/NovaLibrary/src/SuspectTableIterator.cpp#L127)

I'm not sure what the action of the iterators should be on an empty table. Return a reference to the empty suspect? Something other than segfaulting should happen though.