Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(746)

Unified Diff: webkit/glue/alt_404_page_resource_fetcher.cc

Issue 155166: The WebURLResponse will be null if the network request fails. So, a null che... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/glue/alt_error_page_resource_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/alt_404_page_resource_fetcher.cc
===================================================================
--- webkit/glue/alt_404_page_resource_fetcher.cc (revision 20031)
+++ webkit/glue/alt_404_page_resource_fetcher.cc (working copy)
@@ -42,7 +42,7 @@
void Alt404PageResourceFetcher::OnURLFetchComplete(
const WebURLResponse& response,
const std::string& data) {
- if (response.httpStatusCode() == 200) {
+ if (!response.isNull() && response.httpStatusCode() == 200) {
// Only show server response if we got a 200.
webframeloaderclient_->Alt404PageFinished(doc_loader_.get(), data);
} else {
« no previous file with comments | « no previous file | webkit/glue/alt_error_page_resource_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698