WebDataSource::response can legitimately have a null response, so we
must check that case.
* DumpRenderTree/DumpRenderTree.vcproj/DumpRenderTree/DumpRenderTree.cpp:
(dump):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25196
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-08-22 Oliver Hunt <oliver@apple.com>
+
+ Reviewed by John and Adam.
+
+ WebDataSource::response can legitimately have a null response, so we
+ must check that case.
+
+ * DumpRenderTree/DumpRenderTree.vcproj/DumpRenderTree/DumpRenderTree.cpp:
+ (dump):
+
2007-08-21 Kevin McCullough <kmccullough@apple.com>
Reviewed by Geof.
COMPtr<IWebDataSource> dataSource;
if (SUCCEEDED(frame->dataSource(&dataSource))) {
COMPtr<IWebURLResponse> response;
- if (SUCCEEDED(dataSource->response(&response))) {
+ if (SUCCEEDED(dataSource->response(&response)) && response) {
BSTR mimeType;
if (SUCCEEDED(response->MIMEType(&mimeType)))
dumpAsText |= !_tcscmp(mimeType, TEXT("text/plain"));