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

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

Issue 3405037: Fixed user feedback crash on parameter check (std exception was thrown).... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 3 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 | 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
===================================================================
--- chrome/browser/dom_ui/bug_report_ui.cc (revision 60692)
+++ chrome/browser/dom_ui/bug_report_ui.cc (working copy)
@@ -454,7 +454,8 @@
std::string params = page_url.substr(strlen(chrome::kChromeUIBugReportURL));
// Erase the # - the first character.
- params.erase(params.begin(),params.begin() + 1);
+ if (params.length())
+ params.erase(params.begin(),params.begin() + 1);
int index = 0;
if (!base::StringToInt(params, &index)) {
« 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