directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1428395 - /directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java
Date Thu, 03 Jan 2013 15:16:38 GMT
Author: pamarcelot
Date: Thu Jan  3 15:16:38 2013
New Revision: 1428395

URL: http://svn.apache.org/viewvc?rev=1428395&view=rev
Log:
Fix for DIRSERVER-1788 (ConfigurationReader fails to correctly read byte[] values)

Modified:
    directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java

Modified: directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java?rev=1428395&r1=1428394&r2=1428395&view=diff
==============================================================================
--- directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java
(original)
+++ directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/ConfigPartitionReader.java
Thu Jan  3 15:16:38 2013
@@ -450,9 +450,9 @@ public class ConfigPartitionReader
         // Get the entry attribute for this attribute type
         Attribute attribute = entry.get( attributeTypeName );
 
-        if ( ( attribute != null ) && attribute.size() > 0 )
+        if ( ( attribute != null ) && ( attribute.size() > 0 ) )
         {
-            if ( isMultiple( field.getClass() ) )
+            if ( !isMultiple( field.getType() ) )
             {
                 readSingleValueField( bean, field, attribute );
             }



Mime
View raw message