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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 924843002: Fix for possible crashes due to pointer value being null (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« content/common/cursors/webcursor.cc ('K') | « content/common/cursors/webcursor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 5dc54433f82ffb69665feb16dc69d19390c9e20e..91c896de53b393c5a9cd54b1f84e40de1ba7292e 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -3772,7 +3772,7 @@ void RenderFrameImpl::SendDidCommitProvisionalLoad(
}
base::string16 method = request.httpMethod();
- if (EqualsASCII(method, "POST")) {
+ if (entry && EqualsASCII(method, "POST")) {
params.is_post = true;
Charlie Reis 2015/02/17 21:26:59 Good catch. I don't think we should skip this lin
Sunil Ratnu 2015/02/18 09:04:45 Done.
params.post_id = ExtractPostId(entry->root());
}
« content/common/cursors/webcursor.cc ('K') | « content/common/cursors/webcursor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698