| commit | a24a97f7d3ae88d81df3341bfc4296ab4a7237fb | [log] |
|---|---|---|
| author | Caolán McNamara <caolanm@redhat.com> | Sat Apr 16 12:29:37 2022 +0100 |
| committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | Sat Apr 16 21:52:02 2022 +0200 |
| tree | 27a420b00072559c314ac151690b28447f45be95 | |
| parent | dfacd800395b95837a24a1f33267b46f96efd5de [diff] |
Resolves: tdf#148197 crash on launching context menu with no row selected Change-Id: I4b05e6013ec4fb8f3968484a59c2dacf1e1c97ee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133047 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 7e197da..4985e4f 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)