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 2009/08/10 00:54:28 UTC

svn commit: r802620 - /directory/apacheds/trunk/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerEntryUtils.java

Author: elecharny
Date: Sun Aug  9 22:54:28 2009
New Revision: 802620

URL: http://svn.apache.org/viewvc?rev=802620&view=rev
Log:
Fixed the toServerAttribute() methods which was not handling correctly attributes with no value

Modified:
    directory/apacheds/trunk/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerEntryUtils.java

Modified: directory/apacheds/trunk/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerEntryUtils.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerEntryUtils.java?rev=802620&r1=802619&r2=802620&view=diff
==============================================================================
--- directory/apacheds/trunk/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerEntryUtils.java (original)
+++ directory/apacheds/trunk/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerEntryUtils.java Sun Aug  9 22:54:28 2009
@@ -139,6 +139,11 @@
             {
                 Object value = values.nextElement();
                 
+                if ( value == null )
+                {
+                    continue;
+                }
+                
                 if ( serverAttribute.isHR() )
                 {
                     if ( value instanceof String )