diff --git a/src/generic/wizard.cpp b/src/generic/wizard.cpp index d0ae77094b..3dfd4fb0da 100644 --- a/src/generic/wizard.cpp +++ b/src/generic/wizard.cpp @@ -907,7 +907,8 @@ void wxWizard::WXHandleDPIChanged(wxDPIChangedEvent& event) wxBitmap bmp; if ( m_statbmp ) { - bmp = m_page->GetBitmap(); + if ( m_page ) + bmp = m_page->GetBitmap(); if ( !bmp.IsOk() ) bmp = m_bitmap.GetBitmapFor(this);