From 28b0f20e4c26130ee613e67fc8b20a4c42827a41 Mon Sep 17 00:00:00 2001 From: Benjamin Williams Date: Tue, 13 Nov 2007 20:17:58 +0000 Subject: [PATCH] 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 --- src/aui/auibook.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 7b222338e1..83144b0e6f 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -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;