Don't close the current sitemap if we never opened one

This commit is contained in:
Mark H. Wood
2013-08-18 16:43:49 -04:00
parent a003b5f955
commit a043338207

View File

@@ -151,8 +151,11 @@ public abstract class AbstractGenerator
* if an error occurs writing
*/
public int finish() throws IOException
{
if (null != currentOutput)
{
closeCurrentFile();
}
OutputStream fo = new FileOutputStream(new File(outputDir,
getIndexFilename()));