Fix for 149759. Commit the db changes in ConvertLDIFtoMAB() only if 'db' is not null. r=naving, sr=bienvenu.

This commit is contained in:
cavin%netscape.com 2002-07-02 22:17:34 +00:00
Родитель 1cbd19d782
Коммит 71e8996419
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -1282,8 +1282,10 @@ NS_IMETHODIMP nsAddressBook::ConvertLDIFtoMAB(nsIFileSpec *fileSpec, PRBool migr
fileSpec->CloseStream();
// Commit the changes.
return(db->Commit(nsAddrDBCommitType::kLargeCommit));
// Commit the changes if 'db' is set.
if (db)
rv = db->Commit(nsAddrDBCommitType::kLargeCommit);
return rv;
}
#define CSV_DELIM ","