Closed Bug 517168 Opened 16 years ago Closed 14 years ago

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

Categories

(Thunderbird :: Search, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 14.0

People

(Reporter: Usul, Assigned: florian)

References

Details

(Keywords: calendar-integration)

Attachments

(1 file)

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.
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))
Attached patch PatchSplinter Review
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+
Status: NEW → RESOLVED
Closed: 14 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.

Attachment

General

Created:
Updated:
Size: