X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8dee26e1070f431f22963e41e030b14a4f9a709a..8cbc59fe84f046685b873cf58f6c56debe59de1c:/src/propgrid/propgridpagestate.cpp diff --git a/src/propgrid/propgridpagestate.cpp b/src/propgrid/propgridpagestate.cpp index a0aeef7788..0e34d126fb 100644 --- a/src/propgrid/propgridpagestate.cpp +++ b/src/propgrid/propgridpagestate.cpp @@ -268,7 +268,7 @@ void wxPropertyGridPageState::InitNonCatMode() void wxPropertyGridPageState::DoClear() { - if ( m_pPropGrid->GetState() == this ) + if ( m_pPropGrid && m_pPropGrid->GetState() == this ) { m_pPropGrid->ClearSelection(false); }