sw/source/core/access/AccessibilityCheck.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 83bdc4ad3c4e8e8e9df1b163f236e9b4cdc7e869
Author:     Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk>
AuthorDate: Fri May 19 22:56:57 2023 +0900
Commit:     Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
CommitDate: Wed Aug 30 12:26:05 2023 +0200

    sw: prevent crash in TextContrastCheck
    
    Change-Id: Idc8740a275b9f49aca08d8a3add9a88f9d53a220
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152012
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <qui...@gmail.com>
    (cherry picked from commit c53a8284cf1740af7035b952fbc040a785117319)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155789
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>
    (cherry picked from commit 7f51cf11bca0b1712bf0877007c99cc0bfcee074)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155910
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Tested-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
    Reviewed-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com>

diff --git a/sw/source/core/access/AccessibilityCheck.cxx 
b/sw/source/core/access/AccessibilityCheck.cxx
index ac558a44c69e..2121ed10519b 100644
--- a/sw/source/core/access/AccessibilityCheck.cxx
+++ b/sw/source/core/access/AccessibilityCheck.cxx
@@ -436,6 +436,8 @@ private:
         }
 
         const SwPageDesc* pPageDescription = pTextNode->FindPageDesc();
+        if (!pPageDescription)
+            return;
         const SwFrameFormat& rPageFormat = pPageDescription->GetMaster();
         const SwAttrSet& rPageSet = rPageFormat.GetAttrSet();
 

Reply via email to