]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/window_osx.cpp
remember to users that env vars are hardly usable for IPC :)
[wxWidgets.git] / src / osx / window_osx.cpp
index 6c3433c72389fae8db2a7d2d574ecc0dc0a85f6d..bb4f4d691cb2cd8fb56af53036766d5907015c30 100644 (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;
 }
 
 //