Skip to content

Commit 09eba1e

Browse files
committed
Bug #13209: about forms-online component and hierarchical validation, fixing a technical error when fetching data about deleted user.
1 parent f21f52e commit 09eba1e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

formsOnline/formsOnline-library/src/main/java/org/silverpeas/components/formsonline/model/DefaultFormsOnlineService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,8 +965,9 @@ public void cacheHierarchicalValidatorsOf(final Set<String> userIds) {
965965
* @return the hierarchical validator of the user represented by the given id.
966966
*/
967967
public String getHierarchicalValidatorOf(final String userId) {
968-
return cache.computeIfAbsent(userId, i ->
969-
UserFull.getById(i).getValue("boss"));
968+
return cache.computeIfAbsent(userId, i -> ofNullable(UserFull.getById(i))
969+
.map(u -> u.getValue("boss"))
970+
.orElse(StringUtil.EMPTY));
970971
}
971972
}
972973
}

0 commit comments

Comments
 (0)