You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by fm...@apache.org on 2012/04/03 10:21:14 UTC
svn commit: r1308741 -
/incubator/syncope/trunk/core/src/main/java/org/syncope/core/util/SchemaMappingUtil.java
Author: fmartelli
Date: Tue Apr 3 08:21:13 2012
New Revision: 1308741
URL: http://svn.apache.org/viewvc?rev=1308741&view=rev
Log:
SYNCOPE-7 #comment role/membership normal attribute propagation used to fail with a cast exception
Modified:
incubator/syncope/trunk/core/src/main/java/org/syncope/core/util/SchemaMappingUtil.java
Modified: incubator/syncope/trunk/core/src/main/java/org/syncope/core/util/SchemaMappingUtil.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/java/org/syncope/core/util/SchemaMappingUtil.java?rev=1308741&r1=1308740&r2=1308741&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/java/org/syncope/core/util/SchemaMappingUtil.java (original)
+++ incubator/syncope/trunk/core/src/main/java/org/syncope/core/util/SchemaMappingUtil.java Tue Apr 3 08:21:13 2012
@@ -152,12 +152,11 @@ public class SchemaMappingUtil {
getIntMappingType()));
for (AbstractAttributable attributable : attributables) {
- final UAttr attr = attributable.getAttribute(mapping.getIntAttrName());
+ final AbstractAttr attr = attributable.getAttribute(mapping.getIntAttrName());
if (attr != null && attr.getValues() != null) {
values.addAll(schema.isUniqueConstraint()
- ? Collections.singletonList(attr.getUniqueValue())
- : attr.getValues());
+ ? Collections.singletonList(attr.getUniqueValue()) : attr.getValues());
}
LOG.debug("Retrieved attribute {}" + "\n* IntAttrName {}" + "\n* IntMappingType {}"