[CSTPER-221] Minor changes and cleanup

This commit is contained in:
Alessandro Martelli
2020-10-30 18:41:04 +01:00
parent 28273ce292
commit b878b0a7e0
6 changed files with 9 additions and 14 deletions

View File

@@ -100,10 +100,11 @@ public class CommunityServiceImpl extends DSpaceObjectServiceImpl<Community> imp
} else {
identifierService.register(context, newCommunity, handle);
}
} catch (IdentifierException e) {
throw new RuntimeException("Can't create an Identifier!");
} catch (IllegalStateException | IdentifierException ex) {
throw new IllegalStateException(ex);
}
if (parent != null) {
parent.addSubCommunity(newCommunity);
newCommunity.addParentCommunity(parent);