Mark H. Wood created DS-1265:
--------------------------------

             Summary: Sitemap generator does not defend against empty repository
                 Key: DS-1265
                 URL: https://jira.duraspace.org/browse/DS-1265
             Project: DSpace
          Issue Type: Bug
          Components: DSpace API
    Affects Versions: 1.8.1
            Reporter: Mark H. Wood


When there are zero items in the repository, 'dspace generate-sitemaps' throws 
an NPE.

Exception: null
java.lang.NullPointerException
        at 
org.dspace.app.sitemap.AbstractGenerator.closeCurrentFile(AbstractGenerator.java:138)
        at 
org.dspace.app.sitemap.AbstractGenerator.finish(AbstractGenerator.java:155)
        at 
org.dspace.app.sitemap.GenerateSitemaps.generateSitemaps(GenerateSitemaps.java:238)
        at 
org.dspace.app.sitemap.GenerateSitemaps.main(GenerateSitemaps.java:110)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to