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:
@@ -430,7 +430,8 @@ BMenu::ItemAt(int32 index) const
|
|||||||
BMenu *
|
BMenu *
|
||||||
BMenu::SubmenuAt(int32 index) const
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user