Index: chrome/browser/profiles/profile_manager.cc |
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc |
index 93a514c661c5c7ff8c884352d77100a423ca809f..871ed9daab73ae9bd4913531ca2221e6bc841e4b 100644 |
--- a/chrome/browser/profiles/profile_manager.cc |
+++ b/chrome/browser/profiles/profile_manager.cc |
@@ -622,7 +622,9 @@ std::vector<Profile*> ProfileManager::GetLastOpenedProfiles( |
LOG(WARNING) << "Invalid entry in " << prefs::kProfilesLastActive; |
continue; |
} |
- to_return.push_back(GetProfile(user_data_dir.AppendASCII(profile))); |
+ Profile* profile = GetProfile(user_data_dir.AppendASCII(profile)); |
+ if (profile) |
+ to_return.push_back(profile); |
} |
} |
return to_return; |