sd/source/ui/unoidl/unomodel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 7439a873217eb75aa7256b5b4008d8e6324d27f9 Author: Caolán McNamara <[email protected]> AuthorDate: Tue Nov 25 20:18:18 2025 +0000 Commit: Xisco Fauli <[email protected]> CommitDate: Thu Nov 27 16:33:46 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]> (cherry picked from commit e257b5a28896f140c4b47c258491031a0bec06bb) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194678 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Jenkins Code-Style: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> (cherry picked from commit ef93d3951da8a61543eac82baa99a977c8b70935) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194702 Code-Style: Xisco Fauli <[email protected]> Reviewed-by: Xisco Fauli <[email protected]> diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 63ebe26db5cd..4e1ea601c37c 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -3962,7 +3962,7 @@ OString SdXImpressDocument::getViewRenderState(SfxViewShell* pViewShell) if (pView) { const SdViewOptions& pVOpt = pView->GetViewOptions(); - if (mpDoc->GetOnlineSpell()) + if (mpDoc && mpDoc->GetOnlineSpell()) aState.append('S'); if (!ThemeColors::UseOnlyWhiteDocBackground()) {
