directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r951312 - /directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifEntry.java
Date Fri, 04 Jun 2010 07:36:59 GMT
Author: felixk
Date: Fri Jun  4 07:36:59 2010
New Revision: 951312

URL: http://svn.apache.org/viewvc?rev=951312&view=rev
Log:
Avoid possible NPE

Modified:
    directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifEntry.java

Modified: directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifEntry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifEntry.java?rev=951312&r1=951311&r2=951312&view=diff
==============================================================================
--- directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifEntry.java
(original)
+++ directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifEntry.java
Fri Jun  4 07:36:59 2010
@@ -582,7 +582,7 @@ public class LdifEntry implements Clonea
     {
         int result = 37;
 
-        if ( entry.getDn() != null )
+        if ( entry != null && entry.getDn() != null )
         {
             result = result*17 + entry.getDn().hashCode();
         }



Mime
View raw message