Fix crash that occurred when hitting pgup/pgdn in the URL input without having the choice list visible.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@530 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
anevilyak 2010-07-16 01:13:07 +00:00 committed by Alexandre Deckner
parent ef6778d11e
commit aef38397d3

View File

@ -419,7 +419,14 @@ BDefaultChoiceView::ChoicesAreShown()
int32
BDefaultChoiceView::CountVisibleChoices() const
{
return min_c(fMaxVisibleChoices, fListView->CountItems());
if (fListView)
{
return min_c(fMaxVisibleChoices, fListView->CountItems());
}
else
{
return 0;
}
}