|Subject:||finish() explodes with "no document found!"|
calling ->finish() seems broken due to the "undef" handler set at the end of parse_chunk
As in attached example.fail.t , a "No document found!" exception is thrown, and the "end_document" handler never triggers.
You'll see that in the modified test example.t, which hacks around the problem by directly forcing the handler to be set, no exception is thrown, and the end_document handler triggers as expected.