Commit f7922a53 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed some NPEs.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6359 b35dd754-fafc-0310-a699-88a17e54d16e
parent d5022de8
......@@ -94,12 +94,12 @@ public class LdapUserProvider implements UserProvider {
}
Date creationDate = new Date();
Attribute creationDateField = attrs.get("createTimestamp");
if (creationDateField != null) {
creationDate = parseLDAPDate((String)creationDateField.get());
if (creationDateField != null && "".equals(((String) creationDateField.get()).trim())) {
creationDate = parseLDAPDate((String) creationDateField.get());
}
Date modificationDate = new Date();
Attribute modificationDateField = attrs.get("modifyTimestamp");
if (modificationDateField != null) {
if (modificationDateField != null && "".equals(((String) modificationDateField.get()).trim())) {
modificationDate = parseLDAPDate((String)modificationDateField.get());
}
// Escape the username so that it can be used as a JID.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment