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:
parent
92de7654e9
commit
d4e4ba484d
@ -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;
|
||||
}
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user