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:
Derek Hulley
2006-02-27 13:43:39 +00:00
parent d044970ab6
commit 44b56a20a5

View File

@@ -2393,12 +2393,13 @@ 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));
nbName = nbNameList.findName(NetBIOSName.MasterBrowser, false); if (nbNameList != null)
{
// Set the domain/workgroup name nbName = nbNameList.findName(NetBIOSName.MasterBrowser, false);
// Set the domain/workgroup name
if (nbName != null) if (nbName != null)
domainName = nbName.getName(); domainName = nbName.getName();
}
} }
catch (IOException ex) catch (IOException ex)
{ {