sd/source/console/PresenterHelpView.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2e50d024cb23bd4f12635fd12170240d8cc24390
Author:     Caolán McNamara <[email protected]>
AuthorDate: Thu Jan 22 10:30:40 2026 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Thu Jan 22 13:50:02 2026 +0100

    cid#1680629 Dereference after null check
    
    Change-Id: I5c9d1e9955943da237a284757c1ba1a1d0fe368c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197800
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins

diff --git a/sd/source/console/PresenterHelpView.cxx 
b/sd/source/console/PresenterHelpView.cxx
index 81672b64d3a3..151ace77fb5a 100644
--- a/sd/source/console/PresenterHelpView.cxx
+++ b/sd/source/console/PresenterHelpView.cxx
@@ -348,7 +348,7 @@ void PresenterHelpView::ReadHelpStrings()
     for (const auto& pair: HelpStrings)
         mpTextContainer->push_back(
         std::make_shared<Block>(
-            SdResId(pair.first), SdResId(pair.second), mpFont->mxFont, 
mnMaximalWidth));
+            SdResId(pair.first), SdResId(pair.second), mpFont ? mpFont->mxFont 
: nullptr, mnMaximalWidth));
 }
 
 void PresenterHelpView::CheckFontSize()

Reply via email to