Kaydet (Commit) 9b3ca276 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

rhbz#1286416: Be more resilient during auto-recovery attempts

...called from within the signal handler, so any bets are off

Change-Id: Iedb5c7bc8d08350e5f3e3118c6713f5c25b238b6
üst 7dcbc570
...@@ -2475,6 +2475,8 @@ void AutoRecovery::implts_registerDocument(const css::uno::Reference< css::frame ...@@ -2475,6 +2475,8 @@ void AutoRecovery::implts_registerDocument(const css::uno::Reference< css::frame
return; return;
css::uno::Reference< css::frame::XFrame > xFrame = xController->getFrame(); css::uno::Reference< css::frame::XFrame > xFrame = xController->getFrame();
if (!xFrame.is())
return;
css::uno::Reference< css::frame::XDesktop > xDesktop (xFrame->getCreator(), css::uno::UNO_QUERY); css::uno::Reference< css::frame::XDesktop > xDesktop (xFrame->getCreator(), css::uno::UNO_QUERY);
if (!xDesktop.is()) if (!xDesktop.is())
return; return;
......
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