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

Unified Diff: chrome/browser/dom_ui/bug_report_ui.cc

Issue 5958016: Fix crash when user presses send report before onload handler was called (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/bug_report_ui.cc
diff --git a/chrome/browser/dom_ui/bug_report_ui.cc b/chrome/browser/dom_ui/bug_report_ui.cc
index 4c92c73b765f6cc7db55d9e776baa033efe38990..2641aff45e15e7e85c3a057f7a5f18db9e4d76b5 100644
--- a/chrome/browser/dom_ui/bug_report_ui.cc
+++ b/chrome/browser/dom_ui/bug_report_ui.cc
@@ -653,6 +653,11 @@ void BugReportHandler::HandleRefreshSavedScreenshots(const ListValue*) {
void BugReportHandler::HandleSendReport(const ListValue* list_value) {
+ if (!bug_report_) {
+ LOG(ERROR) << "Bug report hasn't been intialized yet.";
+ return;
+ }
+
ListValue::const_iterator i = list_value->begin();
if (i == list_value->end()) {
LOG(ERROR) << "Incorrect data passed to sendReport.";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698