| Index: Source/devtools/front_end/elements/ElementsPanel.js
|
| diff --git a/Source/devtools/front_end/elements/ElementsPanel.js b/Source/devtools/front_end/elements/ElementsPanel.js
|
| index 4056fce41be4b0ad4f93dacb296c4436b7b06699..9349c9148cc99bc2848c99528fb15839e242829d 100644
|
| --- a/Source/devtools/front_end/elements/ElementsPanel.js
|
| +++ b/Source/devtools/front_end/elements/ElementsPanel.js
|
| @@ -720,7 +720,7 @@ WebInspector.ElementsPanel.prototype = {
|
| */
|
| handleCopyEvent: function(event)
|
| {
|
| - if (!WebInspector.currentFocusElement().enclosingNodeOrSelfWithClass("elements-tree-outline"))
|
| + if (!WebInspector.currentFocusElement() || !WebInspector.currentFocusElement().enclosingNodeOrSelfWithClass("elements-tree-outline"))
|
| return;
|
| var treeOutline = this._treeOutlineForNode(this.selectedDOMNode());
|
| if (treeOutline)
|
|
|