sc/source/ui/navipi/content.cxx |    3 ---
 1 file changed, 3 deletions(-)

New commits:
commit f1ab10a0940ae3b252aa1a606fc992346a5ab67c
Author:     Caolán McNamara <[email protected]>
AuthorDate: Fri Oct 31 20:24:58 2025 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Oct 31 22:44:57 2025 +0100

    cid#1668263 Dereference before null check
    
    there won't be a null iterator here
    
    Change-Id: I16b7d1e6ef1519b620105f5fba61709f49bbc26a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193282
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index 8deac205db2a..e47b60a64d37 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -1540,9 +1540,6 @@ void ScContentTree::BringCommentToAttention(sal_uInt16 
nCommentId)
         sal_uLong nChild;
         GetEntryIndexes(nType, nChild, xIter.get());
 
-        if (!xIter)
-            return;
-
         if (nType == ScContentId::NOTE)
         {
             m_xTreeView->set_cursor(*xIter);

Reply via email to