summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-03-27 09:20:49 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-03-27 11:49:58 +0100
commitfdb1dc8062f969f4dde038d116b631479ec796b6 (patch)
tree9b2fbc26d71e44d32233360c5acf28d0075a1a4f /dbaccess
parenta5d8e924531ee6938df92fa9d1508ee2a3118554 (diff)
cid#1460977 Unchecked return value
Change-Id: I8399df5aabae57df79c5e45a9b85fead482cde8e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91196 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/dlg/indexdialog.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/dlg/indexdialog.cxx b/dbaccess/source/ui/dlg/indexdialog.cxx
index fd27f35efbdd..fb698aabd6e2 100644
--- a/dbaccess/source/ui/dlg/indexdialog.cxx
+++ b/dbaccess/source/ui/dlg/indexdialog.cxx
@@ -354,10 +354,10 @@ namespace dbaui
void DbaIndexDialog::OnRenameIndex()
{
- // the selected index
+ // the selected iterator
std::unique_ptr<weld::TreeIter> xSelected(m_xIndexList->make_iterator());
- // the selected index
- m_xIndexList->get_selected(xSelected.get());
+ if (!m_xIndexList->get_selected(xSelected.get()))
+ return;
// save the changes made 'til here
// Upon leaving the edit mode, the control will be re-initialized with the