cui/source/dialogs/hlmarkwn.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 588879ceafcb4bdbeef3cb8c1770265da3c8917e
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Sep 6 13:09:37 2022 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Sep 7 08:17:21 2022 +0200

    cid#1500594 Explicit null dereferenced
    
    since
    
    commit 5480d9237af1cf25ac464bf49ba364a757fcf6f5
    Date:   Sun Jan 24 22:17:49 2021 -0900
    
        tdf#114567 tdf#138934 Hyperlink-Target in Doc Headings expand/collapse
    
    lets make a copy of the iterator
    
    Change-Id: I855c58377871d7fb55ea676ebac48c0abc67e98c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139502
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/cui/source/dialogs/hlmarkwn.cxx b/cui/source/dialogs/hlmarkwn.cxx
index 616d5e7122bc..ff7730db55c0 100644
--- a/cui/source/dialogs/hlmarkwn.cxx
+++ b/cui/source/dialogs/hlmarkwn.cxx
@@ -366,7 +366,7 @@ int SvxHlinkDlgMarkWnd::FillTree( const uno::Reference< 
container::XNameAccess >
                         // push if the inserted entry is a child
                         if (nOutlineLevel > 
aHeadingsParentEntryStack.top().second)
                             aHeadingsParentEntryStack.push(
-                                        std::pair(std::move(xEntry), 
nOutlineLevel));
+                                        
std::pair(mxLbTree->make_iterator(xEntry.get()), nOutlineLevel));
                     }
                     else
                     {

Reply via email to