diff --git a/src/main/java/gov/nih/nci/bento/model/PrivateESDataFetcher.java b/src/main/java/gov/nih/nci/bento/model/PrivateESDataFetcher.java index e55a082fc..bec77e7c8 100644 --- a/src/main/java/gov/nih/nci/bento/model/PrivateESDataFetcher.java +++ b/src/main/java/gov/nih/nci/bento/model/PrivateESDataFetcher.java @@ -372,11 +372,17 @@ private List> fileOverview(Map params) throw List> result = overview(FILES_END_POINT, params, PROPERTIES, defaultSort, mapping); final String ACL_KEY = "acl"; - for(Map resultElement: result){ - String acl = (String) resultElement.get(ACL_KEY); - String[] acls = acl.replaceAll("\\]|\\[|'", "").split(","); - resultElement.put(ACL_KEY, acls); + try{ + for(Map resultElement: result){ + String acl = (String) resultElement.get(ACL_KEY); + String[] acls = acl.replaceAll("\\]|\\[|'|\"", "").split(","); + resultElement.put(ACL_KEY, acls); + } + } + catch(ClassCastException | NullPointerException ex){ + logger.error("Error occurred when splitting acl into String array"); } + return result; }