diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-07-28 23:59:48 +0530 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-11-15 17:07:07 +0100 |
commit | 215d2811cbab9debec9d1d86b1fbee499f63a14f (patch) | |
tree | 26dfda77bd87dcd1e133c2ef24c2c75511e2d1c4 /sw | |
parent | ee4e5fe9f2ad9def76b1920ecf6e7fbce1bbac32 (diff) |
lokdialog: Some checks if invalid uno command is provided
Change-Id: I914564f67716f4e218d42ac4f0545e46e9609389
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 2c6f82bb1310..d53c75174490 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3715,6 +3715,11 @@ void SwXTextDocument::paintDialog(const vcl::DialogID& rDialogID, VirtualDevice& SfxViewFrame* pViewFrame = pDocShell->GetView()->GetViewFrame(); SfxSlotPool* pSlotPool = SW_MOD()->GetSlotPool(); const SfxSlot* pSlot = pSlotPool->GetUnoSlot(rDialogID); + if (!pSlot) + { + SAL_WARN("lok.dialog", "No slot found for " << rDialogID); + return; + } SfxChildWindow* pChild = pViewFrame->GetChildWindow(pSlot->GetSlotId()); if (!pChild) { |