another minor fix on getVREFoldersId when user is new

Bug/21794 r5.2.0
Massimiliano Assante 3 years ago
parent 9b1c436756
commit 7d43b96e11

@ -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;
}

Loading…
Cancel
Save