Index: Source/core/inspector/InspectorDOMAgent.cpp |
diff --git a/Source/core/inspector/InspectorDOMAgent.cpp b/Source/core/inspector/InspectorDOMAgent.cpp |
index da635a3d254504f7cdbcc57033d4b55b89edc949..c2f6d169cebdd921d0788d5e97f469c430685cde 100644 |
--- a/Source/core/inspector/InspectorDOMAgent.cpp |
+++ b/Source/core/inspector/InspectorDOMAgent.cpp |
@@ -1007,8 +1007,9 @@ void InspectorDOMAgent::performSearch(ErrorString*, const String& whitespaceTrim |
// XPath evaluation |
for (Vector<Document*>::iterator it = docs.begin(); it != docs.end(); ++it) { |
Document* document = *it; |
+ ASSERT(document); |
TrackExceptionState exceptionState; |
- RefPtrWillBeRawPtr<XPathResult> result = DocumentXPathEvaluator::evaluate(document, whitespaceTrimmedQuery, document, 0, XPathResult::ORDERED_NODE_SNAPSHOT_TYPE, 0, exceptionState); |
+ RefPtrWillBeRawPtr<XPathResult> result = DocumentXPathEvaluator::evaluate(*document, whitespaceTrimmedQuery, document, 0, XPathResult::ORDERED_NODE_SNAPSHOT_TYPE, 0, exceptionState); |
if (exceptionState.hadException() || !result) |
continue; |