From commits-return-22358-apmail-directory-commits-archive=directory.apache.org@directory.apache.org Sun Aug 09 22:54:46 2009 Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 49116 invoked from network); 9 Aug 2009 22:54:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Aug 2009 22:54:46 -0000 Received: (qmail 70029 invoked by uid 500); 9 Aug 2009 22:54:53 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 69962 invoked by uid 500); 9 Aug 2009 22:54:53 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 69953 invoked by uid 99); 9 Aug 2009 22:54:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Aug 2009 22:54:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Aug 2009 22:54:50 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D407623888EC; Sun, 9 Aug 2009 22:54:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090809225428.D407623888EC@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 )