Don't crash if flags are not specified, this parameter is optional.
Closes #15256.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74238
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
NSTabViewItem* hitItem = [slf tabViewItemAtPoint:nspt];
if (!hitItem) {
- *flags = wxBK_HITTEST_NOWHERE;
+ if ( flags )
+ *flags = wxBK_HITTEST_NOWHERE;
} else {
retval = [slf indexOfTabViewItem:hitItem];
- *flags = wxBK_HITTEST_ONLABEL;
+ if ( flags )
+ *flags = wxBK_HITTEST_ONLABEL;
}
return retval;