X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.util%2Fsrc%2Forg%2Fargeo%2Futil%2Fdirectory%2Fldap%2FDefaultLdapEntry.java;h=6b6154dcc0094792d19a2d3290574b29ddbfd829;hb=138e686fbf65683c3c94a52f1cfbaf8e02362e19;hp=c4d20feba922576dc181129ebcd75dae523fbde5;hpb=285c23f26c4d634cd139d393ebcb708187d5e960;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.util/src/org/argeo/util/directory/ldap/DefaultLdapEntry.java b/org.argeo.util/src/org/argeo/util/directory/ldap/DefaultLdapEntry.java index c4d20feba..6b6154dcc 100644 --- a/org.argeo.util/src/org/argeo/util/directory/ldap/DefaultLdapEntry.java +++ b/org.argeo.util/src/org/argeo/util/directory/ldap/DefaultLdapEntry.java @@ -35,8 +35,8 @@ public class DefaultLdapEntry implements LdapEntry { // private Attributes publishedAttributes; // Temporarily expose the fields - protected AttributeDictionary properties; - protected AttributeDictionary credentials; + private AttributeDictionary properties; + private AttributeDictionary credentials; protected DefaultLdapEntry(AbstractLdapDirectory directory, LdapName dn) { Objects.requireNonNull(directory); @@ -374,6 +374,7 @@ public class DefaultLdapEntry implements LdapEntry { @Override public Object put(String key, Object value) { + Objects.requireNonNull(value, "Value for key " + key + " is null"); try { if (key == null) { // FIXME remove this "feature", a key should be specified