directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r944785 - /directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Date Sun, 16 May 2010 09:54:57 GMT
Author: kayyagari
Date: Sun May 16 09:54:56 2010
New Revision: 944785

URL: http://svn.apache.org/viewvc?rev=944785&view=rev
Log:
fixed a NPE caused when the close() method is called after sessionClosed() method sets the
connector reference to null

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

Modified: directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
URL: http://svn.apache.org/viewvc/directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java?rev=944785&r1=944784&r2=944785&view=diff
==============================================================================
--- directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
(original)
+++ directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Sun May 16 09:54:56 2010
@@ -3233,6 +3233,9 @@ public class LdapNetworkConnection exten
         messageId.set( 0 );
         
         // DO NOT call connector.dispose(), it is hanging when there is no network connection
+        // set localConnector flag to false to avoid NPE when close() is called after this
sessionClosed() method
+        // gets called
+        localConnector = false;
         connector = null;
         
         clearMaps();



Mime
View raw message