summaryrefslogtreecommitdiff
path: root/basctl/source/basicide
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-18 09:12:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-18 11:38:36 +0200
commit67224d9ea094ac3db7bf9f8dd77bc1245ca5eb85 (patch)
tree56cef84a5c51b37ae35e7c4924403546ecaa4d52 /basctl/source/basicide
parentb2760b7d2a3fa74f5cb4d477d44d9cef33c5065c (diff)
cid#1500394 Explicit null dereferenced
Change-Id: Ie97b047b793c0d9546a17f9e9f1d20cbeed62626 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138469 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basctl/source/basicide')
-rw-r--r--basctl/source/basicide/moduldlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basctl/source/basicide/moduldlg.cxx b/basctl/source/basicide/moduldlg.cxx
index dc46c7db0677..a6ce17179f50 100644
--- a/basctl/source/basicide/moduldlg.cxx
+++ b/basctl/source/basicide/moduldlg.cxx
@@ -397,7 +397,7 @@ private:
// get source shell, library name and module/dialog name
std::unique_ptr<weld::TreeIter> xSelected(m_rTreeView.make_iterator());
if (!m_rTreeView.get_selected(xSelected.get()))
- xSelected.reset();
+ return;
EntryDescriptor aSourceDesc = m_rTreeView.GetEntryDescriptor(xSelected.get());
const ScriptDocument& rSourceDoc( aSourceDesc.GetDocument() );
const OUString& aSourceLibName( aSourceDesc.GetLibName() );