diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-11 19:38:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-12 12:19:34 +0200 |
commit | ec9b4bf1b671fa1b14ca51f0275480ab17da3d20 (patch) | |
tree | d9d97385b5019bd980b42bb01182a1df4ff9673f | |
parent | 535ce8116f91d14d7f2215786de981f17d875739 (diff) |
cid#1465260 Unchecked return value
Change-Id: I0f4a71e4735bd5038b45a259bd5136ebcc4c66a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98572
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | svx/source/sidebar/inspector/InspectorTextPanel.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/svx/source/sidebar/inspector/InspectorTextPanel.cxx b/svx/source/sidebar/inspector/InspectorTextPanel.cxx index 652e63261713..1b0ea48a55c3 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> xEntry = mxListBoxStyles->make_iterator(); - mxListBoxStyles->get_iter_first(*xEntry); - mxListBoxStyles->iter_next(*xEntry); + if (!mxListBoxStyles->get_iter_first(*xEntry)) + return; + if (!mxListBoxStyles->iter_next(*xEntry)) + return; mxListBoxStyles->collapse_row(*xEntry); // Collapse "Default Paragraph Style" } |