summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-11-10 16:45:10 -0500
committerAshod Nakashian <ashnakash@gmail.com>2019-11-11 02:36:53 +0100
commitcea0eb9cac478f247fb156563e0a99b07d5a34dc (patch)
tree7fcb214e33fe0b7fdbdb8fb29435b186830689ca /sw
parent1dd66357752b01fbf3f1aee9966a55d4a16038e4 (diff)
sw: SwView can be null when setting clipboard
Change-Id: I8a0e59f6ceec4bf89e5eed0813157297efb56af1 Reviewed-on: https://gerrit.libreoffice.org/82405 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index b747e52a1f12..9a6b70eb063c 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -3214,7 +3214,9 @@ void SwXTextDocument::setClipboard(const uno::Reference<datatransfer::clipboard:
{
SolarMutexGuard aGuard;
- pDocShell->GetView()->GetEditWin().SetClipboard(xClipboard);
+ SwView* pView = pDocShell->GetView();
+ if (pView)
+ pView->GetEditWin().SetClipboard(xClipboard);
}
bool SwXTextDocument::isMimeTypeSupported()