| Index: Source/core/inspector/DOMPatchSupport.cpp
|
| diff --git a/Source/core/inspector/DOMPatchSupport.cpp b/Source/core/inspector/DOMPatchSupport.cpp
|
| index 9708d9671ef630af589c9776f11745de8b1ea04c..8387f92780b1a1706d70b6a43ec7ec6638443d1c 100644
|
| --- a/Source/core/inspector/DOMPatchSupport.cpp
|
| +++ b/Source/core/inspector/DOMPatchSupport.cpp
|
| @@ -102,6 +102,10 @@ void DOMPatchSupport::patchDocument(const String& markup)
|
| parser->finish();
|
| parser->detach();
|
|
|
| + // Check if the new markup has been parsed successfully.
|
| + if (!newDocument->documentElement())
|
| + return;
|
| +
|
| OwnPtr<Digest> oldInfo = createDigest(document().documentElement(), 0);
|
| OwnPtr<Digest> newInfo = createDigest(newDocument->documentElement(), &m_unusedNodesMap);
|
|
|
|
|