directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r986998 - in /directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message: LdapProtocolEncoder.java SearchResultReferenceImpl.java
Date Thu, 19 Aug 2010 01:19:40 GMT
Author: elecharny
Date: Thu Aug 19 01:19:39 2010
New Revision: 986998

URL: http://svn.apache.org/viewvc?rev=986998&view=rev
Log:
o Fixed a bug in the way the ExtendedResponse ResponseName was handled when it was null
o Added a default initialization of the referral list on the searchResultReference class

Modified:
    directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/LdapProtocolEncoder.java
    directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/SearchResultReferenceImpl.java

Modified: directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/LdapProtocolEncoder.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/LdapProtocolEncoder.java?rev=986998&r1=986997&r2=986998&view=diff
==============================================================================
--- directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/LdapProtocolEncoder.java
(original)
+++ directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/LdapProtocolEncoder.java
Thu Aug 19 01:19:39 2010
@@ -778,7 +778,7 @@ public class LdapProtocolEncoder extends
 
         String id = extendedResponse.getResponseName();
 
-        if ( id != null )
+        if ( !StringTools.isEmpty( id ) )
         {
             byte[] idBytes = StringTools.getBytesUtf8( id );
             extendedResponse.setResponseNameBytes( idBytes );

Modified: directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/SearchResultReferenceImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/SearchResultReferenceImpl.java?rev=986998&r1=986997&r2=986998&view=diff
==============================================================================
--- directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/SearchResultReferenceImpl.java
(original)
+++ directory/shared/branches/shared-codec-merge/ldap/src/main/java/org/apache/directory/shared/ldap/message/SearchResultReferenceImpl.java
Thu Aug 19 01:19:39 2010
@@ -33,7 +33,7 @@ public class SearchResultReferenceImpl e
     static final long serialVersionUID = 7423807019951309810L;
 
     /** Referral holding the reference urls */
-    private Referral referral;
+    private Referral referral = new ReferralImpl();
 
     /** The length of the referral */
     private int referralLength;



Mime
View raw message