summaryrefslogtreecommitdiff
path: root/sfx2/source/view/viewsh.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-05-10 16:41:11 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-05-10 18:04:42 +0200
commitc1486533818de626378ec67afa49845da164d00c (patch)
treee8964f6c2531a5096240e6855fc19a103fe654d3 /sfx2/source/view/viewsh.cxx
parent758c44f69f0a0ed4a501695de4f065824325e750 (diff)
CppunitTest_sw_tiledrendering: close the document while LOK is still active
This is the same type of problem that was fixed for CppunitTest_desktop_lib in commit da17ccaec39f50de68c3fdd431bc66a2bec04127 (CppunitTest_desktop_lib: close the document while LOK is still active, 2019-05-09). Change-Id: I2fe050bf40d68dafa0334f4149e54958c492122d Reviewed-on: https://gerrit.libreoffice.org/72126 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sfx2/source/view/viewsh.cxx')
-rw-r--r--sfx2/source/view/viewsh.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index a3e91f4ba261..aeb4931a48bb 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -1458,6 +1458,9 @@ void SfxViewShell::registerLibreOfficeKitViewCallback(LibreOfficeKitCallback pCa
afterCallbackRegistered();
+ if (!pCallback)
+ return;
+
// Ask other views to tell us about their cursors.
SfxViewShell* pViewShell = SfxViewShell::GetFirst();
while (pViewShell)