summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <wolfbeast@users.noreply.github.com>2016-10-14 17:41:25 +0200
committerGitHub <noreply@github.com>2016-10-14 17:41:25 +0200
commitdc7f6995442c8b7f12330845341936548a62856b (patch)
treec68ad73d269767335e36dcf2676ed244f80612e1
parent18b7e105a2c2722379142316bad688266213ec62 (diff)
parent13641d78c216bc2e0203bccfd1273792e9e12363 (diff)
downloadpalemoon-gre-dc7f6995442c8b7f12330845341936548a62856b.tar.gz
Merge pull request #598 from janekptacijarabaci/minorFix_places
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..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