sd/source/ui/unoidl/unomodel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 1b21da9c2d0cf3cb1f2e84597e773db01f9caa4f Author: Caolán McNamara <[email protected]> AuthorDate: Fri Dec 13 08:59:43 2024 +0000 Commit: Xisco Fauli <[email protected]> CommitDate: Mon Dec 16 11:44:45 2024 +0100 cid#1636690 Dereference after null check Change-Id: Ie32ffbe6148c2e12aa99068790fa7a1a1c0f27e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178399 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Jenkins (cherry picked from commit 236244b81ad58988341d66aea0018c2fa9c82a50) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178547 Reviewed-by: Xisco Fauli <[email protected]> diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 12953834614c..4c5fe32caf70 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -4397,7 +4397,7 @@ OString SdXImpressDocument::getPresentationInfo() const aJsonWriter.put("empty", bIsDrawPageEmpty); // Notes - SdPage* pNotesPage = mpDoc->GetSdPage((pPage->GetPageNum() - 1) >> 1, PageKind::Notes); + SdPage* pNotesPage = pPage ? mpDoc->GetSdPage((pPage->GetPageNum() - 1) >> 1, PageKind::Notes) : nullptr; if (pNotesPage) { SdrObject* pNotes = pNotesPage->GetPresObj(PresObjKind::Notes);
