mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fixed NullPointerException occuring under Linux when CIFS not configured
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2496 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -2393,12 +2393,13 @@ public class ServerConfiguration implements ApplicationListener
|
||||
// Get the NetBIOS name list from the browse master
|
||||
|
||||
NetBIOSNameList nbNameList = NetBIOSSession.FindNamesForAddress(nbName.getIPAddressString(0));
|
||||
nbName = nbNameList.findName(NetBIOSName.MasterBrowser, false);
|
||||
|
||||
// Set the domain/workgroup name
|
||||
|
||||
if (nbName != null)
|
||||
domainName = nbName.getName();
|
||||
if (nbNameList != null)
|
||||
{
|
||||
nbName = nbNameList.findName(NetBIOSName.MasterBrowser, false);
|
||||
// Set the domain/workgroup name
|
||||
if (nbName != null)
|
||||
domainName = nbName.getName();
|
||||
}
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
|
Reference in New Issue
Block a user