summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--browser/components/places/content/treeView.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/browser/components/places/content/treeView.js b/browser/components/places/content/treeView.js
index 8e4a3d7d4..03d45b217 100644
--- a/browser/components/places/content/treeView.js
+++ b/browser/components/places/content/treeView.js
@@ -399,6 +399,9 @@ PlacesTreeView.prototype = {
*/
_getNewRowForRemovedNode:
function PTV__getNewRowForRemovedNode(aUpdatedContainer, aOldNode) {
+ if (aOldNode == undefined) {
+ return -1;
+ }
let parent = aOldNode.parent;
if (parent) {
// If the node's parent is still set, the node is not obsolete