summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index 338230b1173e..4ef8253e5fa2 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -3601,7 +3601,7 @@ uno::Reference<datatransfer::XTransferable> SwXTextDocument::getSelection()
}
}
- if (!xTransferable.is())
+ if (!xTransferable.is() && pWrtShell)
xTransferable = new SwTransferable(*pWrtShell);
return xTransferable;