summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-11-30 16:38:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-11-30 19:53:30 +0100
commit327f2c85beb2c90d2ccdedbffe57c0831ebf16d6 (patch)
tree5b9a89245729345ec693724ff086ef421b5707da /vcl
parent3625dd33be6cc23b663c50f0c1794ceb1e14b921 (diff)
tdf#145952 don't crash with LO_COLLECT_UIINFO set in autofilter
Change-Id: I27c474c522554c825c0296cdf711d481d22fd024 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126126 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/uitest/logger.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/uitest/logger.cxx b/vcl/source/uitest/logger.cxx
index 9b6719411e98..4eef2ee0ebb1 100644
--- a/vcl/source/uitest/logger.cxx
+++ b/vcl/source/uitest/logger.cxx
@@ -251,12 +251,12 @@ void UITestLogger::logKeyInput(VclPtr<vcl::Window> const& xUIElement, const KeyE
VclPtr<vcl::Window> pParent = xUIElement->GetParent();
- while (!pParent->IsTopWindow())
+ while (pParent && !pParent->IsTopWindow())
{
pParent = pParent->GetParent();
}
- OUString aParentID = pParent->get_id();
+ OUString aParentID = pParent ? pParent->get_id() : OUString();
OUString aContent;