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,13 +2393,14 @@ public class ServerConfiguration implements ApplicationListener
|
|||||||
// Get the NetBIOS name list from the browse master
|
// Get the NetBIOS name list from the browse master
|
||||||
|
|
||||||
NetBIOSNameList nbNameList = NetBIOSSession.FindNamesForAddress(nbName.getIPAddressString(0));
|
NetBIOSNameList nbNameList = NetBIOSSession.FindNamesForAddress(nbName.getIPAddressString(0));
|
||||||
|
if (nbNameList != null)
|
||||||
|
{
|
||||||
nbName = nbNameList.findName(NetBIOSName.MasterBrowser, false);
|
nbName = nbNameList.findName(NetBIOSName.MasterBrowser, false);
|
||||||
|
|
||||||
// Set the domain/workgroup name
|
// Set the domain/workgroup name
|
||||||
|
|
||||||
if (nbName != null)
|
if (nbName != null)
|
||||||
domainName = nbName.getName();
|
domainName = nbName.getName();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (IOException ex)
|
catch (IOException ex)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user