A small crash fix whilst testing with a stock People app
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11385 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7c49936aa6
commit
6a1a734c5f
@ -430,7 +430,8 @@ BMenu::ItemAt(int32 index) const
|
||||
BMenu *
|
||||
BMenu::SubmenuAt(int32 index) const
|
||||
{
|
||||
return static_cast<BMenuItem *>(fItems.ItemAt(index))->Submenu();
|
||||
BMenuItem *tempItem=static_cast<BMenuItem *>(fItems.ItemAt(index));
|
||||
return (tempItem) ? tempItem->Submenu() : NULL;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user