2007-07-06 Tony Chang <idealisms@gmail.com>
[WebKit-https.git] / WebCore / loader / ResourceLoader.cpp
index 8ba007d..ebbb887 100644 (file)
@@ -161,7 +161,8 @@ void ResourceLoader::addData(const char* data, int length, bool allAtOnce)
 
 void ResourceLoader::clearResourceData()
 {
-    m_resourceData->clear();
+    if (m_resourceData)
+        m_resourceData->clear();
 }
 
 void ResourceLoader::willSendRequest(ResourceRequest& request, const ResourceResponse& redirectResponse)