diff --git a/mozilla/mailnews/base/prefs/resources/content/accountUtils.js b/mozilla/mailnews/base/prefs/resources/content/accountUtils.js index e361da4d13d..87b35d9e00b 100644 --- a/mozilla/mailnews/base/prefs/resources/content/accountUtils.js +++ b/mozilla/mailnews/base/prefs/resources/content/accountUtils.js @@ -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;