diff --git a/mailnews/addrbook/src/nsAbAutoCompleteSearch.js b/mailnews/addrbook/src/nsAbAutoCompleteSearch.js index 7eb904681b..c918858c71 100644 --- a/mailnews/addrbook/src/nsAbAutoCompleteSearch.js +++ b/mailnews/addrbook/src/nsAbAutoCompleteSearch.js @@ -423,7 +423,7 @@ nsAbAutoCompleteSearch.prototype = { while (allABs.hasMoreElements()) { let dir = allABs.getNext(); if (dir instanceof Components.interfaces.nsIAbDirectory && - dir.useForAutocomplete(params.idKey)) { + dir.useForAutocomplete(("idKey" in params) ? params.idKey : null)) { this._searchCards(searchQuery, dir, result); } }