[ http://jira.dspace.org/jira/browse/DS-212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart Lewis resolved DS-212. ----------------------------- Resolution: Fixed Assignee: Stuart Lewis Resolved in SVN for 1.6 > NPE thrown during Harvest of non-items when visibility restriction is enabled > ----------------------------------------------------------------------------- > > Key: DS-212 > URL: http://jira.dspace.org/jira/browse/DS-212 > Project: DSpace 1.x > Issue Type: Bug > Components: DSpace API > Environment: > http://localhost:8080/oai/request?verb=ListIdentifiers&metadataPrefix=oai_dc > Reporter: Stuart Lewis > Assignee: Stuart Lewis > Fix For: 1.6.0 > > Attachments: null-items.patch > > > When the visibility restriction is enabled (e.g. > harvest.includerestricted.oai = false) a null pointer exception is thrown > when items are harvested, but the 'item' is not set as part of the harvest. > This occurs when ListIdentifiers is being run via OAI-PMH as the item need > not be set, only the information (id) about the item is needed. The code > tries to see if the item has ANON READ permissions, but the item is not set, > resulting in an NPE. > Patch attached. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.dspace.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ Dspace-devel mailing list Dspace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-devel