directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1509631 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultEntry.java
Date Fri, 02 Aug 2013 11:20:40 GMT
Author: elecharny
Date: Fri Aug  2 11:20:40 2013
New Revision: 1509631

URL: http://svn.apache.org/r1509631
Log:
Fixed a potential NPE

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultEntry.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultEntry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultEntry.java?rev=1509631&r1=1509630&r2=1509631&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultEntry.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultEntry.java
Fri Aug  2 11:20:40 2013
@@ -2590,7 +2590,11 @@ public final class DefaultEntry implemen
                 {
                     AttributeType attributeType = schemaManager.getAttributeType( id );
 
-                    if ( !attributeType.equals( objectClassAttributeType ) )
+                    if ( attributeType == null )
+                    {
+                        sb.append( tabs + "id: " + id );
+                    }
+                    else if ( !attributeType.equals( objectClassAttributeType ) )
                     {
                         sb.append( attribute.toString( tabs + "    " ) );
                         continue;



Mime
View raw message