Commit 9d201f37 authored by alph@chromium.org's avatar alph@chromium.org

DevTools: Fix typo causing exception on heap profiles with no target.

TBR=yurys@chromium.org,loislo@chromium.org

Review URL: https://codereview.chromium.org/547413003

git-svn-id: svn://svn.chromium.org/blink/trunk@181568 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent f73e3181
......@@ -755,7 +755,7 @@ WebInspector.HeapSnapshotView.prototype = {
{
var selectedNode = event.target.selectedNode;
var target = this._profile.target();
if (!target && selectedNode instanceof WebInspector.HeapSnapshotGenericObjectNode)
if (target && selectedNode instanceof WebInspector.HeapSnapshotGenericObjectNode)
target.consoleAgent().addInspectedHeapObject(selectedNode.snapshotNodeId);
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment