directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r895257 - /directory/apacheds/branches/apacheds-schema/server-annotations/src/main/java/org/apache/directory/server/factory/ServerAnnotationProcessor.java
Date Sat, 02 Jan 2010 18:41:57 GMT
Author: kayyagari
Date: Sat Jan  2 18:41:54 2010
New Revision: 895257

URL: http://svn.apache.org/viewvc?rev=895257&view=rev
Log:
fixed a ClassCastException when the default NTLM provider class(which is invalid) is initialized

Modified:
    directory/apacheds/branches/apacheds-schema/server-annotations/src/main/java/org/apache/directory/server/factory/ServerAnnotationProcessor.java

Modified: directory/apacheds/branches/apacheds-schema/server-annotations/src/main/java/org/apache/directory/server/factory/ServerAnnotationProcessor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/server-annotations/src/main/java/org/apache/directory/server/factory/ServerAnnotationProcessor.java?rev=895257&r1=895256&r2=895257&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/server-annotations/src/main/java/org/apache/directory/server/factory/ServerAnnotationProcessor.java
(original)
+++ directory/apacheds/branches/apacheds-schema/server-annotations/src/main/java/org/apache/directory/server/factory/ServerAnnotationProcessor.java
Sat Jan  2 18:41:54 2010
@@ -153,7 +153,8 @@
             if( ntlmHandler != null )
             {
                 Class<?> ntlmProviderClass = createLdapServer.ntlmProvider();
-                if( ntlmProviderClass != null )
+                // default value is a invalid Object.class
+                if( ( ntlmProviderClass != null ) && ( ntlmProviderClass != Object.class
) )
                 {
                     try
                     {



Mime
View raw message