Index: src/inspector/v8-heap-profiler-agent-impl.cc |
diff --git a/src/inspector/v8-heap-profiler-agent-impl.cc b/src/inspector/v8-heap-profiler-agent-impl.cc |
index 0ff04e75b9be5b9f973a03e3b5e86024b154a58c..d42859d52c2f2e653a1097397c79d7bfd6df2487 100644 |
--- a/src/inspector/v8-heap-profiler-agent-impl.cc |
+++ b/src/inspector/v8-heap-profiler-agent-impl.cc |
@@ -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(); |
} |