directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1030175 - /directory/apacheds/trunk/service/src/main/java/org/apache/directory/server/ApacheDsService.java
Date Tue, 02 Nov 2010 18:58:48 GMT
Author: kayyagari
Date: Tue Nov  2 18:58:48 2010
New Revision: 1030175

URL: http://svn.apache.org/viewvc?rev=1030175&view=rev
Log:
o added a null check for ldapserver

Modified:
    directory/apacheds/trunk/service/src/main/java/org/apache/directory/server/ApacheDsService.java

Modified: directory/apacheds/trunk/service/src/main/java/org/apache/directory/server/ApacheDsService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/service/src/main/java/org/apache/directory/server/ApacheDsService.java?rev=1030175&r1=1030174&r2=1030175&view=diff
==============================================================================
--- directory/apacheds/trunk/service/src/main/java/org/apache/directory/server/ApacheDsService.java
(original)
+++ directory/apacheds/trunk/service/src/main/java/org/apache/directory/server/ApacheDsService.java
Tue Nov  2 18:58:48 2010
@@ -334,10 +334,16 @@ public class ApacheDsService
         LOG.info( "Starting the LDAP server" );
         long startTime = System.currentTimeMillis();
 
-        printBanner( BANNER_LDAP );
-
         ldapServer = ConfigBuilder.createLdapServer( ldapServerBean, directoryService );
         
+        if ( ldapServer == null )
+        {
+            LOG.info( "Cannot find any reference to the LDAP Server in the configuration
: the server won't be started" );
+            return;
+        }
+
+        printBanner( BANNER_LDAP );
+        
         ldapServer.setDirectoryService( directoryService );
 
         // And start the server now



Mime
View raw message