sd/source/ui/unoidl/unomodel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ef93d3951da8a61543eac82baa99a977c8b70935 Author: Caolán McNamara <[email protected]> AuthorDate: Tue Nov 25 20:18:18 2025 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Thu Nov 27 13:45:24 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]> diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 381edc236775..d826391f63d6 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -3951,7 +3951,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()) {
