diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2019-07-23 09:49:11 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-08-02 11:41:50 -0400 |
commit | 8d82bb6d4a6e9a0a7150bd0a2117970c99a48f63 (patch) | |
tree | 775a63b3658c9ac7eb9ed2ec0969992c9a70aad0 | |
parent | c4bebdc659bd922831db28cbb59c62291d327b2f (diff) |
clipboard: check for null.
Change-Id: I07060035a9744642c98d4a0946695408dc0f6b42
-rw-r--r-- | desktop/source/lib/lokclipboard.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop/source/lib/lokclipboard.cxx b/desktop/source/lib/lokclipboard.cxx index 2c155c121d91..9ed05bc2c383 100644 --- a/desktop/source/lib/lokclipboard.cxx +++ b/desktop/source/lib/lokclipboard.cxx @@ -37,7 +37,6 @@ rtl::Reference<LOKClipboard> LOKClipboardFactory::getClipboardForCurView() return xClip; } -/// FIXME: should really copy and stash its content for a bit. void LOKClipboardFactory::releaseClipboardForView(int nViewId) { osl::MutexGuard aGuard(gMutex); @@ -47,7 +46,7 @@ void LOKClipboardFactory::releaseClipboardForView(int nViewId) gClipboards.get()->clear(); SAL_INFO("lok", "Released all clipboards on doc destroy\n"); } - else + else if (gClipboards.get()) { auto it = gClipboards.get()->find(nViewId); if (it != gClipboards.get()->end()) |