directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r487495 - /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/TelephoneNumberSyntaxChecker.java
Date Fri, 15 Dec 2006 09:33:59 GMT
Author: elecharny
Date: Fri Dec 15 01:33:58 2006
New Revision: 487495

URL: http://svn.apache.org/viewvc?view=rev&rev=487495
Log:
fixed a NPE

Modified:
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/TelephoneNumberSyntaxChecker.java

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/TelephoneNumberSyntaxChecker.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/TelephoneNumberSyntaxChecker.java?view=diff&rev=487495&r1=487494&r2=487495
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/TelephoneNumberSyntaxChecker.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/schema/syntax/TelephoneNumberSyntaxChecker.java
Fri Dec 15 01:33:58 2006
@@ -52,7 +52,7 @@
     /** The Syntax OID, according to RFC 4517, par. 3.3.31 */
     public static final String OID = "1.3.6.1.4.1.1466.115.121.1.50";
     
-    /** Other regexp to extend the initial one */
+    /** Other regexps to extend the initial one */
     private List<String> regexps;
     
     /** Other regexp to extend the initial one, compiled */
@@ -187,6 +187,11 @@
             }
             else
             {
+                if ( compiledREs == null )
+                {
+                    return false;
+                }
+                
                 // The default is not enough, let's try
                 // the other regexps
                 for ( Pattern pattern:compiledREs )



Mime
View raw message