sw/source/core/access/AccessibilityIssue.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 6ca3b441a9e32d80be8e6ebf3246b5e2de36e1ef
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sat Apr 22 21:42:40 2023 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun Apr 23 14:08:47 2023 +0200

    cid#1524750 Dereference null return value
    
    Change-Id: I2f0aa7c190e6f4c18340a75fcc2eb5b635d686e4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150816
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/core/access/AccessibilityIssue.cxx 
b/sw/source/core/access/AccessibilityIssue.cxx
index 628a77e4f2ff..3555e0ae2b41 100644
--- a/sw/source/core/access/AccessibilityIssue.cxx
+++ b/sw/source/core/access/AccessibilityIssue.cxx
@@ -108,7 +108,8 @@ void AccessibilityIssue::quickFixIssue() const
             {
                 SwFlyFrameFormat* pFlyFormat
                     = 
const_cast<SwFlyFrameFormat*>(m_pDoc->FindFlyByName(m_sObjectID));
-                m_pDoc->SetFlyFrameTitle(*pFlyFormat, aNameDialog.GetName());
+                if (pFlyFormat)
+                    m_pDoc->SetFlyFrameTitle(*pFlyFormat, 
aNameDialog.GetName());
             }
         }
         break;

Reply via email to