diff --git a/samples/widgets/widgets.cpp b/samples/widgets/widgets.cpp index d38c423d92..d9e4102a5a 100644 --- a/samples/widgets/widgets.cpp +++ b/samples/widgets/widgets.cpp @@ -1253,6 +1253,8 @@ void WidgetsPage::SetUpWidget() it != widgets.end(); ++it ) { + wxCHECK_RET(*it, "NULL widget"); + #if wxUSE_TOOLTIPS (*it)->SetToolTip(GetAttrs().m_tooltip); #endif // wxUSE_TOOLTIPS