directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1150216 - /directory/apacheds/trunk/service-builder/src/main/java/org/apache/directory/server/config/ServiceBuilder.java
Date Sat, 23 Jul 2011 20:32:04 GMT
Author: seelmann
Date: Sat Jul 23 20:32:03 2011
New Revision: 1150216

URL: http://svn.apache.org/viewvc?rev=1150216&view=rev
Log:
Fix NPE when starting up the ApacheDsService

Modified:
    directory/apacheds/trunk/service-builder/src/main/java/org/apache/directory/server/config/ServiceBuilder.java

Modified: directory/apacheds/trunk/service-builder/src/main/java/org/apache/directory/server/config/ServiceBuilder.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/service-builder/src/main/java/org/apache/directory/server/config/ServiceBuilder.java?rev=1150216&r1=1150215&r2=1150216&view=diff
==============================================================================
--- directory/apacheds/trunk/service-builder/src/main/java/org/apache/directory/server/config/ServiceBuilder.java
(original)
+++ directory/apacheds/trunk/service-builder/src/main/java/org/apache/directory/server/config/ServiceBuilder.java
Sat Jul 23 20:32:03 2011
@@ -74,6 +74,7 @@ import org.apache.directory.server.core.
 import org.apache.directory.server.core.partition.Partition;
 import org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex;
 import org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition;
+import org.apache.directory.server.core.schema.SchemaPartition;
 import org.apache.directory.server.integration.http.HttpServer;
 import org.apache.directory.server.integration.http.WebApp;
 import org.apache.directory.server.kerberos.kdc.KdcServer;
@@ -1259,6 +1260,10 @@ public class ServiceBuilder
         // The schemaManager
         directoryService.setSchemaManager( schemaManager );
 
+        // The schema partition
+        SchemaPartition schemaPartition = new SchemaPartition( schemaManager );
+        directoryService.setSchemaPartition( schemaPartition );
+
         // MUST attributes
         // DirectoryService ID
         directoryService.setInstanceId( directoryServiceBean.getDirectoryServiceId() );



Mime
View raw message