directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r620035 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java
Date Fri, 08 Feb 2008 23:25:26 GMT
Author: seelmann
Date: Fri Feb  8 15:25:25 2008
New Revision: 620035

URL: http://svn.apache.org/viewvc?rev=620035&view=rev
Log:
Merge part of commit 61235 from bigbang back to trunk, needed for DIRSTUDIO-161

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java?rev=620035&r1=620034&r2=620035&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/RdnParser.java
Fri Feb  8 15:25:25 2008
@@ -374,6 +374,12 @@
      */
     private static Object parseAttributeValue( byte[] bytes, Position pos )
     {
+        if ( pos.start == bytes.length )
+        {
+            // This is an empty value
+            return "";
+        }
+
         //StringBuffer sb = new StringBuffer();
         byte c = bytes[pos.start];
         byte[] buffer = new byte[bytes.length];



Mime
View raw message