directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r802620 - /directory/apacheds/trunk/core-entry/src/main/java/org/apache/directory/server/core/entry/ServerEntryUtils.java
Date Sun, 09 Aug 2009 22:54:28 GMT
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 )



Mime
View raw message