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:
parent
ef6778d11e
commit
aef38397d3
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user