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

Unified Diff: chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc

Issue 1422393002: Fix crash when following a link opening a new tab/window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/ui/sync/tab_contents_synced_tab_delegate.cc
diff --git a/chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc b/chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc
index 6d43469964cfe9aa94be5833d9b2ea25ec161ce3..adeee32615253d49bd89d777abbd50d4f9cce206 100644
--- a/chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc
+++ b/chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc
@@ -85,7 +85,7 @@ int TabContentsSyncedTabDelegate::GetEntryCount() const {
GURL TabContentsSyncedTabDelegate::GetVirtualURLAtIndex(int i) const {
NavigationEntry* entry = GetPossiblyPendingEntryAtIndex(web_contents_, i);
- return entry->GetVirtualURL();
+ return entry ? entry->GetVirtualURL() : GURL();
}
GURL TabContentsSyncedTabDelegate::GetFaviconURLAtIndex(int i) const {
« 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