diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-12-13 08:59:43 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-12-13 11:04:34 +0100 |
commit | 236244b81ad58988341d66aea0018c2fa9c82a50 (patch) | |
tree | cb35538ce3ba5c255a1e6efebf7751afdcbf3830 /sd | |
parent | 3abe4b62e5937f7135384df7d93afe4ebab20342 (diff) |
cid#1636690 Dereference after null check
Change-Id: Ie32ffbe6148c2e12aa99068790fa7a1a1c0f27e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178399
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); |