Index: Source/web/AssociatedURLLoader.cpp |
diff --git a/Source/web/AssociatedURLLoader.cpp b/Source/web/AssociatedURLLoader.cpp |
index 2d57aaa3e2ed5f6b7a6c278e7db40630b5cf7282..df1fcfe49c69cb88baca78925f0a208a1531c157 100644 |
--- a/Source/web/AssociatedURLLoader.cpp |
+++ b/Source/web/AssociatedURLLoader.cpp |
@@ -351,7 +351,8 @@ void AssociatedURLLoader::loadAsynchronously(const WebURLRequest& request, WebUR |
const ResourceRequest& webcoreRequest = newRequest.toResourceRequest(); |
Document* webcoreDocument = m_frameImpl->frame()->document(); |
- m_loader = DocumentThreadableLoader::create(webcoreDocument, m_clientAdapter.get(), webcoreRequest, options); |
+ ASSERT(webcoreDocument); |
+ m_loader = DocumentThreadableLoader::create(*webcoreDocument, m_clientAdapter.get(), webcoreRequest, options); |
} else { |
// FIXME: return meaningful error codes. |
m_clientAdapter->setDelayedError(ResourceError()); |