calendar/base/modules/utils/calItipUtils.jsm
changeset 29119 8d219926818378dda077442385c0d59650cc3ab6
parent 28966 44f5cf16dec6331c5b8e877063d3531ec8f3a15c
child 29160 c3a2ed94fe276a125838a24edc43b215f90da865
--- a/calendar/base/modules/utils/calItipUtils.jsm
+++ b/calendar/base/modules/utils/calItipUtils.jsm
@@ -528,17 +528,17 @@ var calitip = {
         identity = defaultAccount.defaultIdentity;
       }
       if (!identity) {
         // If there isn't a default identity (i.e Local Folders is your
         // default identity), then go ahead and use the first available
         // identity.
         let allIdentities = actMgr.allIdentities;
         if (allIdentities.length > 0) {
-          identity = allIdentities.queryElementAt(0, Ci.nsIMsgIdentity);
+          identity = allIdentities[0];
         } else {
           // If there are no identities at all, we cannot get a recipient.
           return null;
         }
       }
       emailMap[identity.email.toLowerCase()] = true;
     } else {
       // Build a map of usable email addresses