v8 inspector: do not upon empty object ids in heap profiler.
BUG=chromium:651324 Review-Url: https://codereview.chromium.org/2522593005 Cr-Commit-Position: refs/heads/master@{#41161}
This commit is contained in:
parent
e60e961140
commit
f0726837af
@ -244,7 +244,7 @@ Response V8HeapProfilerAgentImpl::getObjectByHeapObjectId(
|
||||
|
||||
*result = m_session->wrapObject(heapObject->CreationContext(), heapObject,
|
||||
objectGroup.fromMaybe(""), false);
|
||||
if (!result) return Response::Error("Object is not available");
|
||||
if (!*result) return Response::Error("Object is not available");
|
||||
return Response::OK();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user