mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-09 19:13:18 +00:00
Don't close the current sitemap if we never opened one
This commit is contained in:
@@ -151,8 +151,11 @@ public abstract class AbstractGenerator
|
|||||||
* if an error occurs writing
|
* if an error occurs writing
|
||||||
*/
|
*/
|
||||||
public int finish() throws IOException
|
public int finish() throws IOException
|
||||||
|
{
|
||||||
|
if (null != currentOutput)
|
||||||
{
|
{
|
||||||
closeCurrentFile();
|
closeCurrentFile();
|
||||||
|
}
|
||||||
|
|
||||||
OutputStream fo = new FileOutputStream(new File(outputDir,
|
OutputStream fo = new FileOutputStream(new File(outputDir,
|
||||||
getIndexFilename()));
|
getIndexFilename()));
|
||||||
|
Reference in New Issue
Block a user