marc4j/marc4j — pull request #42 by sesuncedu (2014-06-19 15:33:51+00:00)
Title: Fix NPE when closing MarcXMLWriter when Result constructor was used

Check that writer was set before attempting to use it in MarcXMLWriter::close.

Add a test case based on the sample code.