summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index 07f9415a000a..d6d9c39027ad 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -3860,7 +3860,10 @@ OUString SdXImpressDocument::getPartInfo(int nPart)
jsonWriter.put("innerSpacesX", innerDots.getWidth() ? gridCoarse.getWidth() / innerDots.getWidth() : 0);
jsonWriter.put("innerSpacesY", innerDots.getHeight() ? gridCoarse.getHeight() / innerDots.getHeight() : 0);
- pSdPage->GetPageInfo(jsonWriter);
+ if (pSdPage)
+ pSdPage->GetPageInfo(jsonWriter);
+ else
+ SAL_WARN("sd", "getPartInfo request for SdPage " << nPart << " that does not exist!");
return OStringToOUString(jsonWriter.finishAndGetAsOString(), RTL_TEXTENCODING_UTF8);
}