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

Unified Diff: chrome/browser/rlz/rlz.cc

Issue 256045: Coverity: check TemplateURL::url return value. (Closed)
Patch Set: Created 11 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/rlz/rlz.cc
diff --git a/chrome/browser/rlz/rlz.cc b/chrome/browser/rlz/rlz.cc
index 620dd2c19dc8cd09778b2780a6265b3cdb5f1a6c..1d482424e0183e2c7f14de0d1ba3d59d7adeddbe 100644
--- a/chrome/browser/rlz/rlz.cc
+++ b/chrome/browser/rlz/rlz.cc
@@ -272,7 +272,10 @@ class DelayedInitTask : public Task {
profile->GetTemplateURLModel()->GetDefaultSearchProvider();
if (!url_template)
return false;
- return url_template->url()->HasGoogleBaseURLs();
+ const TemplateURLRef* urlref = url_template->url();
+ if (!urlref)
+ return false;
+ return urlref->HasGoogleBaseURLs();
}
int directory_key_;
« 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