diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 3f6f2920c5..e60e5ea94c 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -344,6 +344,9 @@ static gint wxapp_poll_func( GPollFD *ufds, guint nfds, gint timeout ) void wxapp_install_idle_handler() { + if (wxTheApp == NULL) + return; + #if wxUSE_THREADS wxMutexLocker lock(gs_idleTagsMutex); #endif