Author: thomas.heute(a)jboss.com
Date: 2007-09-10 08:13:33 -0400 (Mon, 10 Sep 2007)
New Revision: 8206
Modified:
modules/identity/trunk/identity/src/main/org/jboss/portal/identity/db/ProfileMapImpl.java
Log:
Check if an "accessor" is nullable before removing it. (it was complaining even
though the field was marked as nullable)
Modified:
modules/identity/trunk/identity/src/main/org/jboss/portal/identity/db/ProfileMapImpl.java
===================================================================
---
modules/identity/trunk/identity/src/main/org/jboss/portal/identity/db/ProfileMapImpl.java 2007-09-10
11:27:54 UTC (rev 8205)
+++
modules/identity/trunk/identity/src/main/org/jboss/portal/identity/db/ProfileMapImpl.java 2007-09-10
12:13:33 UTC (rev 8206)
@@ -201,7 +201,7 @@
throw new ClassCastException("Key is not a String");
}
HibernateUserImpl.PropertyAccessor accessor =
(HibernateUserImpl.PropertyAccessor)HibernateUserImpl.ACCESSORS.get(key);
- if (accessor != null)
+ if (accessor != null && !accessor.isNullable())
{
throw new IllegalArgumentException("Key " + key + " is not
removable");
}
Show replies by date