another minor fix on getVREFoldersId when user is new
This commit is contained in:
parent
9b1c436756
commit
7d43b96e11
|
@ -186,12 +186,12 @@ public class StorageHubServiceUtil {
|
||||||
try {
|
try {
|
||||||
List<? extends Item> list = wsclient.getVreFolders("hl:accounting");
|
List<? extends Item> list = wsclient.getVreFolders("hl:accounting");
|
||||||
toReturn =list.iterator().next().getParentId();
|
toReturn =list.iterator().next().getParentId();
|
||||||
} catch (Exception e) {
|
} catch (java.util.NoSuchElementException ex) {
|
||||||
_log.info("This user has no VRE Folders", e);
|
_log.info("This user has no VRE Folders");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}catch (Exception e) {
|
}catch (Exception e) {
|
||||||
e.printStackTrace();
|
_log.warn("Could not load VREFolders id" + e.getMessage());
|
||||||
}
|
}
|
||||||
return toReturn;
|
return toReturn;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue