sw/source/uibase/app/swmodul1.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 1c17a15d8a7e5a38c999ac2b8388a73e50f088e0
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Feb 23 10:14:31 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Feb 23 12:16:21 2022 +0100

    cid#1500655 silence Dereference after null check
    
    Change-Id: I5ba5b4f4053ede895579620c728daf7b9b4e71c4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130418
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/uibase/app/swmodul1.cxx 
b/sw/source/uibase/app/swmodul1.cxx
index a8fd9ac8e448..af4d63e1e13f 100644
--- a/sw/source/uibase/app/swmodul1.cxx
+++ b/sw/source/uibase/app/swmodul1.cxx
@@ -253,6 +253,7 @@ void SwModule::ApplyRulerMetric( FieldUnit eMetric, bool 
bHorizontal, bool bWeb
             GetUsrPref(false);
         pPref = m_pUsrPref.get();
     }
+    assert(pPref && "pPref will be set by now");
     if( bHorizontal )
         pPref->SetHScrollMetric(eMetric);
     else

Reply via email to