Kaydet (Commit) 30b8d352 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

tdf#125397: Avoid crash if GetpApp() returns null, can happen on iOS at least

Change-Id: Ib0dfb00c6a00640fe35769f21f167bf3eae8769b
üst e897310c
......@@ -2349,7 +2349,9 @@ void Window::Show(bool bVisible, ShowFlags nFlags)
if ( !pSVData->mpIntroWindow )
{
// The right way would be just to call this (not even in the 'if')
GetpApp()->InitFinished();
auto pApp = GetpApp();
if ( pApp )
pApp->InitFinished();
}
else if ( !ImplIsWindowOrChild( pSVData->mpIntroWindow ) )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment