summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-03-10 12:21:33 -0400
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-18 15:44:52 +0200
commitc2f5b4fc0a67118dd89ef86a40bc854b80b54a1a (patch)
tree8eef29e3708674bcdae7e48a704bee142b3683c6 /desktop
parent3f3f702aef38219a96bd583f4f98ea651e797c1b (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> (cherry picked from commit 9fa568dced78011072390320f64eae28dd06d2b9) Reviewed-on: https://gerrit.libreoffice.org/78443 (cherry picked from commit fa18cdce824525ebd76b542a44741a35062741ce)
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 505ce91e8da5..c86b2eb72dd4 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3824,7 +3824,7 @@ static void doc_postUnoCommand(LibreOfficeKitDocument* pThis, const char* pComma
else
bResult = comphelper::dispatchCommand(aCommand, comphelper::containerToSequence(aPropertyValuesVector));
- if (!bResult)
+ if (!bResult && gImpl)
{
SetLastExceptionMsg("Failed to dispatch " + aCommand);
}