X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.util%2Fsrc%2Forg%2Fargeo%2Fosgi%2Fuseradmin%2FLdifAuthorization.java;fp=org.argeo.util%2Fsrc%2Forg%2Fargeo%2Fosgi%2Fuseradmin%2FLdifAuthorization.java;h=80a9eea30e32ff19eeaae7aa2c94f1895f81da52;hb=cceead8a279e8630f63cc9e8213bdcdca39955a5;hp=15afe08b1fbfbced1f9c2f6e58d07f0fa0f1ca8a;hpb=eb4324be6ac9cdff15828a21ee7d3f6ca2f19fb9;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.util/src/org/argeo/osgi/useradmin/LdifAuthorization.java b/org.argeo.util/src/org/argeo/osgi/useradmin/LdifAuthorization.java index 15afe08b1..80a9eea30 100644 --- a/org.argeo.util/src/org/argeo/osgi/useradmin/LdifAuthorization.java +++ b/org.argeo.util/src/org/argeo/osgi/useradmin/LdifAuthorization.java @@ -79,7 +79,7 @@ class LdifAuthorization implements Authorization { if (displayName == null) displayName = user.getName(); if (displayName == null) - throw new UserDirectoryException("Cannot set display name for " + user); + throw new IllegalStateException("Cannot set display name for " + user); return displayName.toString(); } }