directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1028388 - /directory/shared/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Date Thu, 28 Oct 2010 17:11:26 GMT
Author: pamarcelot
Date: Thu Oct 28 17:11:26 2010
New Revision: 1028388

URL: http://svn.apache.org/viewvc?rev=1028388&view=rev
Log:
Fixed a potential NPE.

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=1028388&r1=1028387&r2=1028388&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
Thu Oct 28 17:11:26 2010
@@ -620,7 +620,7 @@ public class LdapNetworkConnection exten
         }
 
         // And close the connector if it has been created locally
-        if ( localConnector )
+        if ( localConnector && ( connector != null ) )
         {
             // Release the connector
             connector.dispose();



Mime
View raw message