summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-04-16 12:29:37 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2022-04-19 12:10:32 +0200
commit0fc0d1a9fb14a23357219e797e1b35092f7d8ee6 (patch)
tree2671adb526bb1ca5636d32274dcaa33b873c257d
parent3b9bd1dad614b2f0526ae43a0d7250e9e0ec39f9 (diff)
Resolves: tdf#148197 crash on launching context menu with no row selected
Change-Id: I4b05e6013ec4fb8f3968484a59c2dacf1e1c97ee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133048 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> Tested-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r--sw/source/uibase/utlui/content.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index 7e197dafdd67..4985e4f2075e 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -1934,7 +1934,7 @@ IMPL_LINK(SwContentTree, CommandHdl, const CommandEvent&, rCEvt, bool)
xPop->remove("footnotetracking");
bool bSetSensitiveCollapseAllCategories = false;
- if (!m_bIsRoot)
+ if (!m_bIsRoot && xEntry)
{
bool bEntry = m_xTreeView->get_iter_first(*xEntry);
while (bEntry)