directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r470270 - /directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapResult.java
Date Thu, 02 Nov 2006 08:13:50 GMT
Author: elecharny
Date: Thu Nov  2 00:13:49 2006
New Revision: 470270

URL: http://svn.apache.org/viewvc?view=rev&rev=470270
Log:
Fixed a NPE in toString() method.

Modified:
    directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapResult.java

Modified: directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapResult.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapResult.java?view=diff&rev=470270&r1=470269&r2=470270
==============================================================================
--- directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapResult.java
(original)
+++ directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/codec/LdapResult.java
Thu Nov  2 00:13:49 2006
@@ -601,7 +601,7 @@
         sb.append( "            Matched DN : '" ).append( matchedDN == null ? "": matchedDN.toString()
).append( "'\n" );
         sb.append( "            Error message : '" ).append( errorMessage == null ? "" :
errorMessage.toString() ).append( "'\n" );
 
-        if ( referrals.size() != 0 )
+        if ( (referrals != null) && ( referrals.size() != 0 ) )
         {
             sb.append( "            Referrals :\n" );
 



Mime
View raw message