summaryrefslogtreecommitdiffstats
path: root/desktop/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-09-22 09:11:55 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-09-22 11:09:51 +0200
commita912ec7dad25bdb099f80f18b7f8d4892747000b (patch)
tree64256290af48f8b8b156c44e1a99c5d64c09c1d7 /desktop/source
parentNotebookbar: separate .ui files settings for each module (diff)
downloadcore-a912ec7dad25bdb099f80f18b7f8d4892747000b.tar.gz
core-a912ec7dad25bdb099f80f18b7f8d4892747000b.zip
desktop: guard against nullptr frame in doc_registerCallback()
Change-Id: I96956d6631ed574c06df62e9b633d7e1e4d5a5f2
Diffstat (limited to 'desktop/source')
-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 a0e9d5f49640..dfaf159d4968 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1630,7 +1630,7 @@ static void doc_registerCallback(LibreOfficeKitDocument* pThis,
}
}
- if (SfxViewShell* pViewShell = SfxViewFrame::Current()->GetViewShell())
+ if (SfxViewShell* pViewShell = SfxViewShell::Current())
pViewShell->registerLibreOfficeKitViewCallback(CallbackFlushHandler::callback, pDocument->mpCallbackFlushHandlers[nView].get());
}