| Index: Source/core/inspector/InspectorDOMAgent.cpp
|
| diff --git a/Source/core/inspector/InspectorDOMAgent.cpp b/Source/core/inspector/InspectorDOMAgent.cpp
|
| index 4dd5f42c14f1aa0cd2f6e380cc8810afec1ac478..bb40e360239c25bce23fc4ba1862b81b12d997db 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;
|
| - RefPtr<XPathResult> result = DocumentXPathEvaluator::evaluate(document, whitespaceTrimmedQuery, document, 0, XPathResult::ORDERED_NODE_SNAPSHOT_TYPE, 0, exceptionState);
|
| + RefPtr<XPathResult> result = DocumentXPathEvaluator::evaluate(*document, whitespaceTrimmedQuery, document, 0, XPathResult::ORDERED_NODE_SNAPSHOT_TYPE, 0, exceptionState);
|
| if (exceptionState.hadException() || !result)
|
| continue;
|
|
|
|
|