diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 28e9953f..ae092445 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -2624,6 +2624,7 @@ catch(e) { getParentItemForBookmark : function(aId) { + if (aId < 0) return -1; var annotations = PlacesUtils.getAnnotationsForItem(aId); for (let i in annotations) {