summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-03-10 12:21:33 -0400
committerAndras Timar <andras.timar@collabora.com>2019-03-12 13:57:24 +0100
commit9fa568dced78011072390320f64eae28dd06d2b9 (patch)
treec8051d8a41828d8da95500112b72099852a41a92 /desktop
parent0b3c2cb3cb8c8b2ddec6063c2ea75b24abf518fc (diff)
LOK: don't segfault when reporting error
Change-Id: Ia6d614eb15b15f43ddd3e0b5742b888060dfd581 Reviewed-on: https://gerrit.libreoffice.org/69069 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 262b722ece7f..d2eee1b79866 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -2988,7 +2988,7 @@ static void doc_postUnoCommand(LibreOfficeKitDocument* pThis, const char* pComma
else
bResult = comphelper::dispatchCommand(aCommand, comphelper::containerToSequence(aPropertyValuesVector));
- if (!bResult)
+ if (!bResult && gImpl)
{
gImpl->maLastExceptionMsg = "Failed to dispatch the .uno: command";
}