Fix handling of org.alfresco.filesys.config.CIFSConfigBean.getBindToAddress(). An empty string value should be treated equivalent to null.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14068 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Dave Ward
2009-04-23 13:26:24 +00:00
parent aafb1fd269
commit e41bdeffea
2 changed files with 3 additions and 2 deletions

View File

@@ -331,7 +331,8 @@ public class ServerConfigurationBean extends AbstractServerConfigurationBean
cifsConfig.setSMBBindAddress(bindAddr);
}
else if ((bindTo = cifsConfigBean.getBindToAddress()) != null && !bindTo.equals(BIND_TO_IGNORE))
else if ((bindTo = cifsConfigBean.getBindToAddress()) != null && bindTo.length() > 0
&& !bindTo.equals(BIND_TO_IGNORE))
{
// Validate the bind address