diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-04-16 12:29:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-04-16 15:21:17 +0200 |
commit | 95ee4f074f387b498a9083524a13dff636446fe7 (patch) | |
tree | ed876ed0dca9034579b1d532f7fd8f618c5cbf08 /sw | |
parent | 553dd8c722b4261da8b9aaa406a17fe30d3b5476 (diff) |
Resolves: tdf#148197 crash on launching context menu with no row selected
Change-Id: I4b05e6013ec4fb8f3968484a59c2dacf1e1c97ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133095
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index c614ee4d7c7d..64a710b6f3f3 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -1763,7 +1763,7 @@ IMPL_LINK(SwContentTree, CommandHdl, const CommandEvent&, rCEvt, bool) xPop->remove("sort"); bool bSetSensitiveCollapseAllCategories = false; - if (!m_bIsRoot) + if (!m_bIsRoot && xEntry) { bool bEntry = m_xTreeView->get_iter_first(*xEntry); while (bEntry) |