summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2016-10-14 16:05:46 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2016-10-14 16:05:46 +0200
commit16f19d6c64837857192bec0e5e39b3ab5e08e727 (patch)
treefd8ba9414e7c67cd179ba90a51ce9fc52f6ec0ec
parent2a864e189243c65f7978b75c660cc951ab16c53f (diff)
downloadpalemoon-gre-16f19d6c64837857192bec0e5e39b3ab5e08e727.tar.gz
Minor fix: Places - aOldNode is undefined
-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..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