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:
pfeldman 2016-11-21 17:42:40 -08:00 committed by Commit bot
parent e60e961140
commit f0726837af

View File

@ -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();
}