| Index: chrome/browser/ui/browser.cc
|
| ===================================================================
|
| --- chrome/browser/ui/browser.cc (revision 89645)
|
| +++ chrome/browser/ui/browser.cc (working copy)
|
| @@ -1990,7 +1990,8 @@
|
| GURL(chrome::kChromeUISettingsURL + sub_page)));
|
| params.path_behavior = browser::NavigateParams::IGNORE_AND_NAVIGATE;
|
|
|
| - if ((GetSelectedTabContents()->GetURL() == GURL(chrome::kChromeUINewTabURL) ||
|
| + if (GetSelectedTabContents() != NULL &&
|
| + (GetSelectedTabContents()->GetURL() == GURL(chrome::kChromeUINewTabURL) ||
|
| GetSelectedTabContents()->GetURL() == GURL(chrome::kAboutBlankURL)) &&
|
| browser::GetIndexOfSingletonTab(¶ms) < 0) {
|
| params.disposition = CURRENT_TAB;
|
|
|