Bug 372040 - nodeIsLivemarkItem asserts for separators. r=dietrich.

git-svn-id: svn://10.0.0.236/trunk@221042 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mozilla.mano%sent.com 2007-02-28 00:43:50 +00:00
parent a63e3d7d65
commit 30c2a41b71

View File

@ -324,7 +324,11 @@ var PlacesUtils = {
nodeIsLivemarkItem: function PU_nodeIsLivemarkItem(aNode) {
NS_ASSERT(aNode, "null node");
return this.annotations.hasAnnotation(this._uri(aNode.uri),
var uri = aNode.uri;
if (!uri)
return false;
return this.annotations.hasAnnotation(this._uri(uri),
"livemark/bookmarkFeedURI");
},