another minor fix on getVREFoldersId when user is new

This commit is contained in:
Massimiliano Assante 2021-04-22 15:34:43 +02:00
parent 9b1c436756
commit 7d43b96e11
1 changed files with 3 additions and 3 deletions

View File

@ -186,12 +186,12 @@ public class StorageHubServiceUtil {
try {
List<? extends Item> list = wsclient.getVreFolders("hl:accounting");
toReturn =list.iterator().next().getParentId();
} catch (Exception e) {
_log.info("This user has no VRE Folders", e);
} catch (java.util.NoSuchElementException ex) {
_log.info("This user has no VRE Folders");
return null;
}
}catch (Exception e) {
e.printStackTrace();
_log.warn("Could not load VREFolders id" + e.getMessage());
}
return toReturn;
}