diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-22 09:11:55 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-22 11:09:51 +0200 |
commit | a912ec7dad25bdb099f80f18b7f8d4892747000b (patch) | |
tree | 64256290af48f8b8b156c44e1a99c5d64c09c1d7 /desktop/source | |
parent | af3df5340d5d1a26b0d031b03c85cf715ef6ad57 (diff) |
desktop: guard against nullptr frame in doc_registerCallback()
Change-Id: I96956d6631ed574c06df62e9b633d7e1e4d5a5f2
Diffstat (limited to 'desktop/source')
-rw-r--r-- | desktop/source/lib/init.cxx | 2 |
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()); } |