I have a corrupted root file with 19498 events.
If I loop over the events, the first 4465 are read fine, but from event 4466 onwards when I do inputTree->GetEntry I get the error:
I think it would be good to have this possibility to detect a possible issue at an earlier stage. Most of the time the solution could be just to rerun the job.