924ac5f
From 8d8ed1f087e13d3e9412c67bdb9ac446d8dfe87f Mon Sep 17 00:00:00 2001
924ac5f
From: Stephan Bergmann <sbergman@redhat.com>
924ac5f
Date: Mon, 30 Nov 2015 11:38:21 +0100
924ac5f
Subject: [PATCH] rhbz#1286416: Be more resilient during auto-recovery attempts
924ac5f
924ac5f
...called from within the signal handler, so any bets are off
924ac5f
924ac5f
Change-Id: Iedb5c7bc8d08350e5f3e3118c6713f5c25b238b6
924ac5f
(cherry picked from commit 9b3ca276dae6f8d4f337c78e64ed6b7f7e7662ef)
924ac5f
---
924ac5f
 framework/source/services/autorecovery.cxx | 2 ++
924ac5f
 1 file changed, 2 insertions(+)
924ac5f
924ac5f
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx
924ac5f
index 8b75271..b05fdc3 100644
924ac5f
--- a/framework/source/services/autorecovery.cxx
924ac5f
+++ b/framework/source/services/autorecovery.cxx
924ac5f
@@ -2480,6 +2480,8 @@ void AutoRecovery::implts_registerDocument(const css::uno::Reference< css::frame
924ac5f
         return;
924ac5f
 
924ac5f
     css::uno::Reference< css::frame::XFrame >   xFrame   = xController->getFrame();
924ac5f
+    if (!xFrame.is())
924ac5f
+        return;
924ac5f
     css::uno::Reference< css::frame::XDesktop > xDesktop (xFrame->getCreator(), css::uno::UNO_QUERY);
924ac5f
     if (!xDesktop.is())
924ac5f
         return;
924ac5f
-- 
924ac5f
2.4.3
924ac5f