Index: chrome/browser/ui/ash/app_list/app_list_service_ash.cc |
diff --git a/chrome/browser/ui/ash/app_list/app_list_service_ash.cc b/chrome/browser/ui/ash/app_list/app_list_service_ash.cc |
index 38da2f7cd89318317b0086ecb88f148d76291b36..6d0fd0a1a4ced61a6e59fb6f0e4013f0164900ca 100644 |
--- a/chrome/browser/ui/ash/app_list/app_list_service_ash.cc |
+++ b/chrome/browser/ui/ash/app_list/app_list_service_ash.cc |
@@ -56,7 +56,10 @@ void AppListServiceAsh::ShowAndSwitchToState( |
void AppListServiceAsh::Init(Profile* initial_profile) { |
// Ensure the StartPageService is created here. This early initialization is |
// necessary to allow the WebContents to load before the app list is shown. |
- app_list::StartPageService::Get(initial_profile)->Init(); |
+ app_list::StartPageService* service = |
+ app_list::StartPageService::Get(initial_profile); |
+ if (service) |
+ service->Init(); |
} |
base::FilePath AppListServiceAsh::GetProfilePath( |