svx/source/sidebar/inspector/InspectorTextPanel.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit 9e7baa477530f96da6fbeeb07f0f6405a93bfe05 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sat Jul 18 15:53:09 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sun Jul 19 21:19:01 2020 +0200 cid#1465260 Unchecked return value and cid#1465257 Unchecked return value Change-Id: Ibf3fe527368314124dc06050f54e16c88004cbed Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98993 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/svx/source/sidebar/inspector/InspectorTextPanel.cxx b/svx/source/sidebar/inspector/InspectorTextPanel.cxx index 6157f2bc67fb..6ab6b1043de3 100644 --- a/svx/source/sidebar/inspector/InspectorTextPanel.cxx +++ b/svx/source/sidebar/inspector/InspectorTextPanel.cxx @@ -76,8 +76,10 @@ void InspectorTextPanel::updateEntries(const std::vector<TreeNode>& rStore) }); std::unique_ptr<weld::TreeIter> pEntry = mpListBoxStyles->make_iterator(); - mpListBoxStyles->get_iter_first(*pEntry); - mpListBoxStyles->iter_next(*pEntry); + if (!mpListBoxStyles->get_iter_first(*pEntry)) + return; + if (!mpListBoxStyles->iter_next(*pEntry)) + return; mpListBoxStyles->collapse_row(*pEntry); // Collapse "Default Paragraph Style" } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits