make it crash-proof

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2009-03-21 14:24:13 +00:00
parent 92de7654e9
commit d4e4ba484d

View File

@ -195,7 +195,9 @@ wxWindowMac::~wxWindowMac()
WXWidget wxWindowMac::GetHandle() const
{
return (WXWidget) m_peer->GetWXWidget() ;
if ( m_peer )
return (WXWidget) m_peer->GetWXWidget() ;
return NULL;
}
//