Author: bdaw
Date: 2008-04-01 05:25:51 -0400 (Tue, 01 Apr 2008)
New Revision: 10453
Modified:
modules/identity/branches/JBP_IDENTITY_BRANCH_1_0/identity/src/main/org/jboss/portal/identity/ldap/LDAPUserProfileModuleImpl.java
Log:
http://jira.jboss.com/jira/browse/JBPORTAL-1934
Modified:
modules/identity/branches/JBP_IDENTITY_BRANCH_1_0/identity/src/main/org/jboss/portal/identity/ldap/LDAPUserProfileModuleImpl.java
===================================================================
---
modules/identity/branches/JBP_IDENTITY_BRANCH_1_0/identity/src/main/org/jboss/portal/identity/ldap/LDAPUserProfileModuleImpl.java 2008-04-01
09:24:58 UTC (rev 10452)
+++
modules/identity/branches/JBP_IDENTITY_BRANCH_1_0/identity/src/main/org/jboss/portal/identity/ldap/LDAPUserProfileModuleImpl.java 2008-04-01
09:25:51 UTC (rev 10453)
@@ -187,7 +187,7 @@
throw new IdentityException("Property has read only access - cannot set:
" + propertyName);
}
- if (!pi.getType().equals(property.getClass().getName()))
+ if (property != null &&
!pi.getType().equals(property.getClass().getName()))
{
throw new IdentityException("Wrong property type. Must be: " +
pi.getType() + "; and found: " + property.getClass().getName());
}