sd/source/ui/unoidl/unomodel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 236244b81ad58988341d66aea0018c2fa9c82a50 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri Dec 13 08:59:43 2024 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Fri Dec 13 11:04:34 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 <caolan.mcnam...@collabora.com> Tested-by: Jenkins diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 70fbbd52c2a4..af23f62fddfd 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -4354,7 +4354,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);