Kaydet (Commit) 175274a6 authored tarafından Michael Meeks's avatar Michael Meeks

lok: don't crash in simple LOK use-case with no callback.

Change-Id: I7bceba10f002ad5751e3d810f9a9767ad2e875bc
Reviewed-on: https://gerrit.libreoffice.org/66924
Tested-by: Jenkins
Reviewed-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
üst 7422d394
...@@ -1577,8 +1577,11 @@ static LibreOfficeKitDocument* lo_documentLoadWithOptions(LibreOfficeKit* pThis, ...@@ -1577,8 +1577,11 @@ static LibreOfficeKitDocument* lo_documentLoadWithOptions(LibreOfficeKit* pThis,
} }
LibLODocument_Impl* pDocument = new LibLODocument_Impl(xComponent); LibLODocument_Impl* pDocument = new LibLODocument_Impl(xComponent);
int nState = doc_getSignatureState(pDocument); if (pLib->mpCallback)
pLib->mpCallback(LOK_CALLBACK_SIGNATURE_STATUS, OString::number(nState).getStr(), pLib->mpCallbackData); {
int nState = doc_getSignatureState(pDocument);
pLib->mpCallback(LOK_CALLBACK_SIGNATURE_STATUS, OString::number(nState).getStr(), pLib->mpCallbackData);
}
return pDocument; return pDocument;
} }
catch (const uno::Exception& exception) catch (const uno::Exception& exception)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment