fix for #105659. fix js warnings when there isn't a mapiregistry service.

r=srilatha, sr=mscott
This commit is contained in:
sspitzer%netscape.com 2001-10-20 06:24:07 +00:00
Родитель 450a9da99d
Коммит 4a18bb442a
1 изменённых файлов: 10 добавлений и 3 удалений

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

@ -81,13 +81,20 @@ function getInvalidAccounts(accounts)
// This will bring up the dialog only once per session and only if we
// are not the default mail client.
function showMailIntegrationDialog() {
try {
var mapiRegistry = Components.classes[ "@mozilla.org/mapiregistry;1" ].
getService( Components.interfaces.nsIMapiRegistry );
var mapiRegistry;
try {
var mapiRegistryProgID = "@mozilla.org/mapiregistry;1"
if (mapiRegistryProgID in Components.classes) {
mapiRegistry = Components.classes[mapiRegistryProgID].getService(Components.interfaces.nsIMapiRegistry);
}
else {
mapiRegistry = null;
}
}
catch (ex) {
mapiRegistry = null;
}
// showDialog is TRUE only if we did not bring up this dialog already
// and we are not the default mail client
var prefLocked = false;