[
https://jira.duraspace.org/browse/DS-928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20675#action_20675
]
Robin Taylor commented on DS-928:
---------------------------------
Just noticed Peter Dietz has a fix for this in Github
https://gist.github.com/952058 that has since been apllied to Subversion.
> REST-API NullPointerException thrown for a request for a specific community
> if there are no community admistrators
> ------------------------------------------------------------------------------------------------------------------
>
> Key: DS-928
> URL: https://jira.duraspace.org/browse/DS-928
> Project: DSpace
> Issue Type: Bug
> Components: REST API (experimental)
> Reporter: Robin Taylor
>
> On my local machine a request for
> http://localhost:8080/rest/communities/1.xml throws a NullPointerException in
> CommunityEntity. The problem is that res.getAdministrators() can legitimately
> return a null if there are no administrators for that Community.
> Instantiating GroupEntity with a null causes the Exception.
> this.administrators = includeFull ? new GroupEntity(res.getAdministrators(),
> level, uparams) : new GroupEntityId(res.getAdministrators());
> We need to change the code to include a check - res.getAdministrators() !=
> null
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.duraspace.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel