fix for #39873 - crash when no ISP rdf files exist

(no reviewer, just a null-check due to semantic changes in strings)
This commit is contained in:
alecf%netscape.com 2000-05-22 05:29:01 +00:00
Родитель 2f5f2674c6
Коммит 53c300b93d
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -135,6 +135,8 @@ nsMsgServiceProviderService::Init()
nsCOMPtr<nsIFileSpec> dataFilesDir; nsCOMPtr<nsIFileSpec> dataFilesDir;
rv = GetConvertedChromeURL("chrome://messenger/locale/isp/", getter_AddRefs(dataFilesDir)); rv = GetConvertedChromeURL("chrome://messenger/locale/isp/", getter_AddRefs(dataFilesDir));
if (NS_FAILED(rv) || !dataFilesDir)
return rv;
// now enumerate every file in the directory, and suck it into the datasource // now enumerate every file in the directory, and suck it into the datasource
nsCOMPtr<nsIDirectoryIterator> fileIterator = nsCOMPtr<nsIDirectoryIterator> fileIterator =