Chromium Code Reviews| 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 4d8bc83b7e9896eb424a025eddae264f3cea5832..72854e21b0e35b0246e8bfd8822a9957cdf843cc 100644 |
| --- a/chrome/browser/dom_ui/bug_report_ui.cc |
| +++ b/chrome/browser/dom_ui/bug_report_ui.cc |
| @@ -570,7 +570,10 @@ base::StringPiece BugReportHandler::Init() { |
| TabContents* target_tab = browser->GetTabContentsAt(index); |
| if (target_tab) { |
| target_tab_title_ = target_tab->GetTitle(); |
| - target_tab_url_ = target_tab->controller().GetActiveEntry()->url().spec(); |
| + if (target_tab->controller().GetActiveEntry()) { |
|
sky
2010/12/14 23:06:18
Why doesn't this use target_tab->GetURL()? That de
rkc
2010/12/14 23:20:48
This is code pulled from the legacy report a bug d
|
| + target_tab_url_ = |
| + target_tab->controller().GetActiveEntry()->url().spec(); |
| + } |
| } |
| // Setup the screenshot source after we've verified input is legit. |