added null pointer check and assert

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Benjamin Williams
2007-11-13 20:17:58 +00:00
parent 3c3dab18a1
commit 28b0f20e4c

View File

@@ -3200,6 +3200,10 @@ bool wxAuiNotebook::InsertPage(size_t page_idx,
bool select,
const wxBitmap& bitmap)
{
wxASSERT_MSG(page, wxT("page pointer must be non-NULL"));
if (!page)
return false;
page->Reparent(this);
wxAuiNotebookPage info;