Kaydet (Commit) 6d6277f2 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 123c7b80
......@@ -2299,7 +2299,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