diff options
author | Moonchild <wolfbeast@users.noreply.github.com> | 2016-10-14 17:41:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-14 17:41:25 +0200 |
commit | dc7f6995442c8b7f12330845341936548a62856b (patch) | |
tree | c68ad73d269767335e36dcf2676ed244f80612e1 | |
parent | 18b7e105a2c2722379142316bad688266213ec62 (diff) | |
parent | 13641d78c216bc2e0203bccfd1273792e9e12363 (diff) | |
download | palemoon-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.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..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 |