When there is no profile/emails yet gloda send warnings in the console (Gloda.myContact is null)

RESOLVED FIXED in Thunderbird 14.0

Status

Thunderbird
Search
--
trivial
RESOLVED FIXED
8 years ago
5 years ago

People

(Reporter: Usul, Assigned: florian)

Tracking

({calendar-integration})

Thunderbird 14.0
calendar-integration

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

8 years ago
On first startup with an empty profile I get this in the Error console :

2009-09-17 10:35:20	gloda.ds.qfq	ERROR	Exception: TypeError: Gloda.myContact is null
Component: General → Search
QA Contact: general → search
Summary: When there is no profile/emails yet gloda send warnings in the console → When there is no profile/emails yet gloda send warnings in the console (Gloda.myContact is null)
I get this too. At some point I also got a hard error, I don't have the line number handy though.
In light of work on bug 485268 it would be nice if Thunderbird could also work without issues if there is no mail account. If Lightning has a way to extend the TB new account dialog (or at least a way to not show it), then we would be a step closer to being able to provide calendar-only UI if there is a calendar but no mail account.
Keywords: calendar-integration
The location of the error is:

Error: Gloda.myContact is null
Source File: file:///.../DailyDebug.app/Contents/MacOS/components/glautocomp.js
Line: 286

The blamed line is:
      if (!(Gloda.myContact.id in this.contactCollection._idMap))
Created attachment 609299 [details] [diff] [review]
Patch

I've only added a null check without trying to understand the surrounding code so this may be wrong, but at least it silences the error (I dislike noise in my error console ;)).
Assignee: nobody → florian
Attachment #609299 - Flags: review?(bugmail)
Comment on attachment 609299 [details] [diff] [review]
Patch

A quiet console is a happy console!  Thanks!
Attachment #609299 - Flags: review?(bugmail) → review+
Thanks for the quick review!

http://hg.mozilla.org/comm-central/rev/5db117e65316
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 14.0
You need to log in before you can comment on or make changes to this bug.