[ https://jira.duraspace.org/browse/DS-928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robin Taylor closed DS-928. --------------------------- Resolution: Fixed Already fixed. > 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 Dspace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-devel