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:14:22 +0100
commit645ec0a7498932d4f1767353a89576cdf33f9c23 (patch)
treef7ebb919c3949cde1f5e4e95357aaf33598bdeae /desktop
parenta121074cbd07939713e169586469b934aedbe594 (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 c6e288ed418b..e2365950eb66 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1128,7 +1128,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));