You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2016/06/11 02:48:22 UTC

svn commit: r1747842 - /directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/name/Ava.java

Author: elecharny
Date: Sat Jun 11 02:48:22 2016
New Revision: 1747842

URL: http://svn.apache.org/viewvc?rev=1747842&view=rev
Log:
Another fix for the Ava constructor : when it's not schemaAware, store the AttributeType in the Ava

Modified:
    directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/name/Ava.java

Modified: directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/name/Ava.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/name/Ava.java?rev=1747842&r1=1747841&r2=1747842&view=diff
==============================================================================
--- directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/name/Ava.java (original)
+++ directory/shared/branches/shared-value/ldap/model/src/main/java/org/apache/directory/api/ldap/model/name/Ava.java Sat Jun 11 02:48:22 2016
@@ -143,15 +143,15 @@ public class Ava implements Externalizab
         {
             if ( schemaManager != null )
             {
-                AttributeType attrType = schemaManager.getAttributeType( ava.normType );
+                attributeType = schemaManager.getAttributeType( ava.normType );
                 
-                if ( attrType != null )
+                if ( attributeType != null )
                 {
-                    normType = attrType.getOid();
+                    normType = attributeType.getOid();
 
                     try
                     {
-                        value = new Value( attrType, ava.value );
+                        value = new Value( attributeType, ava.value );
                     }
                     catch ( LdapInvalidAttributeValueException e )
                     {