| Index: chrome/browser/automation/automation_provider.cc
|
| ===================================================================
|
| --- chrome/browser/automation/automation_provider.cc (revision 14861)
|
| +++ chrome/browser/automation/automation_provider.cc (working copy)
|
| @@ -1747,7 +1747,11 @@
|
| *title_string_size = -1; // -1 is the error code
|
| if (tab_tracker_->ContainsHandle(handle)) {
|
| NavigationController* tab = tab_tracker_->GetResource(handle);
|
| - *title = UTF16ToWideHack(tab->GetActiveEntry()->title());
|
| + NavigationEntry* entry = tab->GetActiveEntry();
|
| + *title = std::wstring();
|
| + if (entry != NULL) {
|
| + *title = UTF16ToWideHack(entry->title());
|
| + }
|
| *title_string_size = static_cast<int>(title->size());
|
| }
|
| }
|
|
|