summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2016-02-11 10:35:37 +0100
committerJan Holesovsky <kendy@collabora.com>2016-02-11 15:16:23 +0100
commit9e4e81a297b39e17ce6f2b80c3f0adbb7be31cd3 (patch)
treec9e96c0199aa960c597afeb8d7c32ccacab2382f /desktop
parentd4589fb377d14820481b04a59393ee261d921fda (diff)
lok: Only add interaction handler when LOK fully initialized.
Necessary for unit testing. Change-Id: I8db8b4c469864a915a00f8d8c4932634d74f11a7
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 d5bec92870e3..27bf2a2f4990 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1177,7 +1177,7 @@ static void doc_postUnoCommand(LibreOfficeKitDocument* pThis, const char* pComma
std::vector<beans::PropertyValue> aPropertyValuesVector(jsonToPropertyValuesVector(pArguments));
// handle potential interaction
- if (aCommand == ".uno:Save")
+ if (gImpl && aCommand == ".uno:Save")
{
rtl::Reference<LOKInteractionHandler> const pInteraction(
new LOKInteractionHandler(::comphelper::getProcessComponentContext(), "save", gImpl, pDocument));