directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 36703 - incubator/directory/snickers/branches/encoder-redesign/ldap-ber-provider/src/java/org/apache/snickers/ldap/encoder
Date Sun, 22 Aug 2004 22:30:36 GMT
Author: akarasulu
Date: Sun Aug 22 15:30:35 2004
New Revision: 36703

Modified:
   incubator/directory/snickers/branches/encoder-redesign/ldap-ber-provider/src/java/org/apache/snickers/ldap/encoder/LdapResultEncoder.java
Log:
Correcting bug where error message tuple was not added when message was null.
The errorMessage field must be added as a tuple with a zero length value because
the field is required and expected.


Modified: incubator/directory/snickers/branches/encoder-redesign/ldap-ber-provider/src/java/org/apache/snickers/ldap/encoder/LdapResultEncoder.java
==============================================================================
--- incubator/directory/snickers/branches/encoder-redesign/ldap-ber-provider/src/java/org/apache/snickers/ldap/encoder/LdapResultEncoder.java
(original)
+++ incubator/directory/snickers/branches/encoder-redesign/ldap-ber-provider/src/java/org/apache/snickers/ldap/encoder/LdapResultEncoder.java
Sun Aug 22 15:30:35 2004
@@ -55,6 +55,11 @@
             top.addLast( ( DefaultMutableTupleNode ) EncoderUtils.encode(
                     result.getErrorMessage() ) );
         }
+        else
+        {
+            top.addLast( ( DefaultMutableTupleNode )
+                    EncoderUtils.encode( "" ) );
+        }
 
         if ( result.getReferral() != null &&
                 result.getReferral().getLdapUrls().size() > 0 )

Mime
View raw message