diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2016-10-14 16:05:46 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2016-10-14 16:05:46 +0200 |
commit | 16f19d6c64837857192bec0e5e39b3ab5e08e727 (patch) | |
tree | fd8ba9414e7c67cd179ba90a51ce9fc52f6ec0ec | |
parent | 2a864e189243c65f7978b75c660cc951ab16c53f (diff) | |
download | palemoon-gre-16f19d6c64837857192bec0e5e39b3ab5e08e727.tar.gz |
Minor fix: Places - aOldNode is undefined
-rw-r--r-- | browser/components/places/content/treeView.js | 3 |
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..08f410bac 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) { + return -1; + } let parent = aOldNode.parent; if (parent) { // If the node's parent is still set, the node is not obsolete |