directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1057256 - /directory/shared/branches/shared-AP/ldap/src/main/java/org/apache/directory/shared/ldap/entry/AbstractValue.java
Date Mon, 10 Jan 2011 16:11:39 GMT
Author: elecharny
Date: Mon Jan 10 16:11:39 2011
New Revision: 1057256

URL: http://svn.apache.org/viewvc?rev=1057256&view=rev
Log:
Fixed a potential NPE in an error message 

Modified:
    directory/shared/branches/shared-AP/ldap/src/main/java/org/apache/directory/shared/ldap/entry/AbstractValue.java

Modified: directory/shared/branches/shared-AP/ldap/src/main/java/org/apache/directory/shared/ldap/entry/AbstractValue.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-AP/ldap/src/main/java/org/apache/directory/shared/ldap/entry/AbstractValue.java?rev=1057256&r1=1057255&r2=1057256&view=diff
==============================================================================
--- directory/shared/branches/shared-AP/ldap/src/main/java/org/apache/directory/shared/ldap/entry/AbstractValue.java
(original)
+++ directory/shared/branches/shared-AP/ldap/src/main/java/org/apache/directory/shared/ldap/entry/AbstractValue.java
Mon Jan 10 16:11:39 2011
@@ -19,9 +19,8 @@
  */
 package org.apache.directory.shared.ldap.entry;
 
-import org.apache.directory.shared.ldap.exception.LdapException;
-
 import org.apache.directory.shared.i18n.I18n;
+import org.apache.directory.shared.ldap.exception.LdapException;
 import org.apache.directory.shared.ldap.schema.AttributeType;
 import org.apache.directory.shared.ldap.schema.LdapComparator;
 import org.apache.directory.shared.ldap.schema.MatchingRule;
@@ -122,7 +121,7 @@ public abstract class AbstractValue<T> i
         {
             if ( ! isValid( attributeType.getSyntax().getSyntaxChecker() ) )
             {
-                String message = I18n.err( I18n.ERR_04476, attributeType.getName(), this.attributeType.getName()
);
+                String message = I18n.err( I18n.ERR_04479_INVALID_SYNTAX_VALUE, wrappedValue,
attributeType.getName() );
                 LOG.info( message );
                 throw new IllegalArgumentException( message );
             }



Mime
View raw message