directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1022853 - /directory/shared/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Date Fri, 15 Oct 2010 08:07:16 GMT
Author: pamarcelot
Date: Fri Oct 15 08:07:16 2010
New Revision: 1022853

URL: http://svn.apache.org/viewvc?rev=1022853&view=rev
Log:
Fixed an NPE occurring in AbstractMessage.
Sending null in a variable length argument list (Type arg...) creates an array filled with
a null value ([null]) and not an empty array ([]).
This caused a NPE later in the AbstractMessage class.

Modified:
    directory/shared/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java

Modified: directory/shared/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java?rev=1022853&r1=1022852&r2=1022853&view=diff
==============================================================================
--- directory/shared/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
(original)
+++ directory/shared/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Fri Oct 15 08:07:16 2010
@@ -936,7 +936,7 @@ public class LdapNetworkConnection exten
 
         // Create the BindRequest
         BindRequest bindRequest = createBindRequest( name, StringTools.getBytesUtf8( credentials
), null,
-            ( Control ) null );
+            new Control[0] );
 
         return bind( bindRequest );
     }



Mime
View raw message