nsIAbDirectory.URI not initialized error in chrome://messenger/content/addressbook/abTrees.js

NEW
Unassigned

Status

Thunderbird
Address Book
--
minor
a year ago
a year ago

People

(Reporter: aceman, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
Deleting an addressbook in the Addressbook window produces an error:

22:50:43.528 NS_ERROR_NOT_INITIALIZED: Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIAbDirectory.URI] 1 abTrees.js:256
	dtv_onItemRemoved chrome://messenger/content/addressbook/abTrees.js:256:1
	AbDeleteDirectory chrome://messenger/content/addressbook/abCommon.js:268:3
	AbDeleteSelectedDirectory chrome://messenger/content/addressbook/abCommon.js:227:3
	doCommand chrome://messenger/content/addressbook/abCommon.js:158:11
	goDoCommand chrome://global/content/globalOverlay.js:100:7
	oncommand chrome://messenger/content/addressbook/addressbook.xul:1:1

Comment 1

a year ago
I'll guess you'll fix this one yourself, right?
(Reporter)

Comment 2

a year ago
Not sure yet. The problem is at line:
 if (aParent.URI == kAllDirectoryRoot ||
     aParent.URI == kAllDirectoryRoot + "?") {

aParent is a Ci.nsIAbDirectory, probably the All Addressbooks node as I was removing a normal (top-level) addressbook. The .URI attribute exists, but it throws. I don't know why it says uninitialized in this case, because we surely call. URI on the tree row on different places (e.g. just showing the context menu on it).

So you if can spot the problem faster, I'd be happy.
You need to log in before you can comment on or make changes to this bug.