Fixed NullPointerException when FTP server fails to start AND info logging is on

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2212 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-01-26 03:28:02 +00:00
parent 2ff11e6114
commit 0a7c58b127

View File

@@ -96,15 +96,14 @@ public class FTPServer
filesysConfig.addServer(ftpServer);
}
// Start the FTP server
if (logger.isInfoEnabled())
logger.info("Starting server " + ftpServer.getProtocolName() + " ...");
// Start the server
if(ftpServer != null)
{
// Start the FTP server
if (logger.isInfoEnabled())
logger.info("Starting server " + ftpServer.getProtocolName() + " ...");
ftpServer.startServer();
}
}