directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r531222 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/subtree/BaseSubtreeSpecification.java
Date Sun, 22 Apr 2007 16:37:42 GMT
Author: seelmann
Date: Sun Apr 22 09:37:37 2007
New Revision: 531222

URL: http://svn.apache.org/viewvc?view=rev&rev=531222
Log:
Fix for commit r531120

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/subtree/BaseSubtreeSpecification.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/subtree/BaseSubtreeSpecification.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/subtree/BaseSubtreeSpecification.java?view=diff&rev=531222&r1=531221&r2=531222
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/subtree/BaseSubtreeSpecification.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/subtree/BaseSubtreeSpecification.java
Sun Apr 22 09:37:37 2007
@@ -343,7 +343,12 @@
             // LDAP filter.
             try
             {
-                refinement.printRefinementToBuffer( buffer );
+                // Must use a tempBuffer here because the 
+                // exception could occur after some characters
+                // were added to the buffer.
+                StringBuffer tempBuffer = new StringBuffer();
+                refinement.printRefinementToBuffer( tempBuffer );
+                buffer.append( tempBuffer );
             }
             catch ( UnsupportedOperationException e )
             {



Mime
View raw message