Index: chrome/browser/instant/instant_controller.cc |
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc |
index 538fa1c63560a6d62c9fa586403f12bc5b91a8b9..a186a7461ea28357951b90cf8a6597e1efdcab7f 100644 |
--- a/chrome/browser/instant/instant_controller.cc |
+++ b/chrome/browser/instant/instant_controller.cc |
@@ -232,8 +232,10 @@ bool InstantController::IsCurrent() { |
bool InstantController::PrepareForCommit() { |
// If we are not in the HIDDEN field trial, return the status of the preview. |
- if (!InstantFieldTrial::IsHiddenExperiment(tab_contents_->profile())) |
+ if (!tab_contents_ || |
+ !InstantFieldTrial::IsHiddenExperiment(tab_contents_->profile())) { |
return IsCurrent(); |
+ } |
TemplateURLService* model = TemplateURLServiceFactory::GetForProfile( |
tab_contents_->profile()); |