diff --git a/src/main/java/org/ligoj/app/plugin/id/resource/UserOrgResource.java b/src/main/java/org/ligoj/app/plugin/id/resource/UserOrgResource.java index d9d06eb..bf6aa98 100644 --- a/src/main/java/org/ligoj/app/plugin/id/resource/UserOrgResource.java +++ b/src/main/java/org/ligoj/app/plugin/id/resource/UserOrgResource.java @@ -576,8 +576,11 @@ private boolean hasAttributeChange(final SimpleUser user1, final SimpleUser user final var predicateFalse = Arrays.stream(equals) .filter(f -> !StringUtils.equalsIgnoreCase(StringUtils.trimToNull(f.apply(user2)), StringUtils.trimToNull(f.apply(user1)))).findFirst().orElse(null); - return predicateFalse != null && hasAttributeChange(user1, true, - String.format("'%s' != '%s'", predicateFalse.apply(user1), predicateFalse.apply(user2))); + if (predicateFalse != null) { + return hasAttributeChange(user1, true, + String.format("'%s' != '%s'", predicateFalse.apply(user1), predicateFalse.apply(user2))); + } + return false; } /**