Chromium Code Reviews| Index: Source/WebCore/html/DOMURL.cpp |
| =================================================================== |
| --- Source/WebCore/html/DOMURL.cpp (revision 78140) |
| +++ Source/WebCore/html/DOMURL.cpp (working copy) |
| @@ -37,7 +37,8 @@ |
| DOMURL::DOMURL(ScriptExecutionContext* scriptExecutionContext) |
| : m_scriptExecutionContext(scriptExecutionContext) |
| { |
| - m_scriptExecutionContext->createdDomUrl(this); |
| + if (m_scriptExecutionContext) |
| + m_scriptExecutionContext->createdDomUrl(this); |
| } |
| DOMURL::~DOMURL() |