| Index: ui/app_list/views/search_result_list_view.cc
|
| diff --git a/ui/app_list/views/search_result_list_view.cc b/ui/app_list/views/search_result_list_view.cc
|
| index dda543115bce9e75af49f82d1ae832f18c1c321a..8b7e4b93007c1e9bef6960af64993247d46dd0ce 100644
|
| --- a/ui/app_list/views/search_result_list_view.cc
|
| +++ b/ui/app_list/views/search_result_list_view.cc
|
| @@ -223,7 +223,10 @@ void SearchResultListView::VisibilityChanged(views::View* starting_from,
|
|
|
| void SearchResultListView::AnimationEnded(const gfx::Animation* animation) {
|
| DCHECK_EQ(auto_launch_animation_.get(), animation);
|
| - view_delegate_->OpenSearchResult(results()->GetItemAt(0), true, ui::EF_NONE);
|
| + if (results()->item_count() > 0) {
|
| + view_delegate_->OpenSearchResult(results()->GetItemAt(0), true,
|
| + ui::EF_NONE);
|
| + }
|
|
|
| // The auto-launch has to be canceled explicitly. Think that one of searcher
|
| // is extremely slow. Sometimes the events would happen in the following
|
|
|