You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by re...@apache.org on 2012/05/01 20:15:27 UTC
svn commit: r1332767 -
/incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/beans/AbstractAttr.java
Author: rene
Date: Tue May 1 18:15:27 2012
New Revision: 1332767
URL: http://svn.apache.org/viewvc?rev=1332767&view=rev
Log:
should not set attributevalue to null. there is a @NotNull annotation on the value. Just remove the entries from the list
Modified:
incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/beans/AbstractAttr.java
Modified: incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/beans/AbstractAttr.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/beans/AbstractAttr.java?rev=1332767&r1=1332766&r2=1332767&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/beans/AbstractAttr.java (original)
+++ incubator/syncope/trunk/core/src/main/java/org/apache/syncope/core/persistence/beans/AbstractAttr.java Tue May 1 18:15:27 2012
@@ -52,9 +52,6 @@ public abstract class AbstractAttr exten
setUniqueValue(attrValue);
} else {
if (!getSchema().isMultivalue()) {
- for (AbstractAttrValue v : getValues()) {
- v.setAttribute(null);
- }
getValues().clear();
}
addValue(attrValue);