sw/source/core/crsr/crsrsh.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 0649349f62cd1c374346508f935d41c9fe516e5e
Author:     Caolán McNamara <[email protected]>
AuthorDate: Tue Aug 12 10:15:55 2025 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Wed Aug 20 09:24:58 2025 +0200

    cid#1660817 silence Dereference before null check
    
    Change-Id: I819d08876eb53238692d80030248fe8dc177409e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189929
    Tested-by: Caolán McNamara <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index e609d341421a..0c77b05b6762 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -1869,6 +1869,7 @@ void SwCursorShell::UpdateCursorPos()
     CurrShell aCurr( this );
     ++mnStartAction;
     SwShellCursor* pShellCursor = getShellCursor( true );
+    assert(pShellCursor && "will exist");
     Size aOldSz( GetDocSize() );
 
     if (isInHiddenFrame(pShellCursor) && !ExtendedSelectedAll())
@@ -2294,6 +2295,8 @@ void SwCursorShell::UpdateCursor( sal_uInt16 eFlags, bool 
bIdleEnd, ScrollSizeMo
         ? static_cast<SwCursorShell&>(rState).getShellCursor(true)
         : rState.m_pCurrentCursor;
 
+    assert(pShellCursor && "will exist");
+
     do {
         bool bAgainst;
         do {

Reply via email to