diff options
author | yurys@google.com <yurys@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-10 12:27:34 +0000 |
---|---|---|
committer | yurys@google.com <yurys@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-10 12:27:34 +0000 |
commit | 3ca588d7d6e79fb4d2f0e6b6a4ebbded29eba733 (patch) | |
tree | 9640c34fa8786775c6caf9fb89b604b114a953ae /chrome/browser/dom_ui | |
parent | 95e23c07d05e60f685051618103b9cbcf77198a3 (diff) | |
download | chromium_src-3ca588d7d6e79fb4d2f0e6b6a4ebbded29eba733.zip chromium_src-3ca588d7d6e79fb4d2f0e6b6a4ebbded29eba733.tar.gz chromium_src-3ca588d7d6e79fb4d2f0e6b6a4ebbded29eba733.tar.bz2 |
Added null-check for current DOMUI.
BUG=8546
Review URL: http://codereview.chromium.org/43010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11322 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r-- | chrome/browser/dom_ui/dom_ui_contents.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/dom_ui/dom_ui_contents.cc b/chrome/browser/dom_ui/dom_ui_contents.cc index eda9fb9..cad2dd4 100644 --- a/chrome/browser/dom_ui/dom_ui_contents.cc +++ b/chrome/browser/dom_ui/dom_ui_contents.cc @@ -174,8 +174,8 @@ WebPreferences DOMUIContents::GetWebkitPrefs() { } void DOMUIContents::RenderViewCreated(RenderViewHost* render_view_host) { - DCHECK(current_ui_); - current_ui_->RenderViewCreated(render_view_host); + if (current_ui_) + current_ui_->RenderViewCreated(render_view_host); } bool DOMUIContents::ShouldDisplayFavIcon() { |