summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-18 15:53:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-19 21:19:01 +0200
commit9e7baa477530f96da6fbeeb07f0f6405a93bfe05 (patch)
treeaf80361297cda071a73402428090b0c9372ccff9 /svx
parentf3ed833dc829d02aa5daa99b1499d4ca0c287554 (diff)
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 <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sidebar/inspector/InspectorTextPanel.cxx6
1 files changed, 4 insertions, 2 deletions
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"
}