sd/source/ui/unoidl/unomodel.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e257b5a28896f140c4b47c258491031a0bec06bb
Author:     Caolán McNamara <[email protected]>
AuthorDate: Tue Nov 25 20:18:18 2025 +0000
Commit:     Miklos Vajna <[email protected]>
CommitDate: Thu Nov 27 08:09:40 2025 +0100

    a null mpDoc was seen here
    
    under windows
    
    Change-Id: I638a0bd77538db7200bdc2c705f51ec031bcdb46
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194548
    Reviewed-by: Miklos Vajna <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Code-Style: Miklos Vajna <[email protected]>

diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index d550cb3e8e45..3153b61c0b67 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -3972,7 +3972,7 @@ OString 
SdXImpressDocument::getViewRenderState(SfxViewShell* pViewShell)
     if (pView)
     {
         const SdViewOptions& pVOpt = pView->GetViewOptions();
-        if (mpDoc->GetOnlineSpell())
+        if (mpDoc && mpDoc->GetOnlineSpell())
             aState.append('S');
         if (pVOpt.mnDocBackgroundColor == 
svtools::ColorConfig::GetDefaultColor(svtools::DOCCOLOR, 1))
             aState.append('D');

Reply via email to