This line is guarded by a "curNumber > -1" condition.  If it is somehow 0 then this will crash.  Please go over this with Patrick Reynolds, the author of the current code.