directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r524054 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AbstractSchemaObject.java
Date Fri, 30 Mar 2007 12:11:26 GMT
Author: elecharny
Date: Fri Mar 30 05:11:12 2007
New Revision: 524054

URL: http://svn.apache.org/viewvc?view=rev&rev=524054
Log:
Fixed a potential NPE in the toString() method

Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AbstractSchemaObject.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AbstractSchemaObject.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AbstractSchemaObject.java?view=diff&rev=524054&r1=524053&r2=524054
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AbstractSchemaObject.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AbstractSchemaObject.java
Fri Mar 30 05:11:12 2007
@@ -317,6 +317,6 @@
      */
     public String toString()
     {
-        return "<" + oid.toString() + ", " + names[0] + ">";
+        return "<" + oid + ", " + ( names == null ? "null" : names[0] ) + ">";
     }
 }



Mime
View raw message