summaryrefslogtreecommitdiff
path: root/sc/source/ui/attrdlg/attrdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/attrdlg/attrdlg.cxx')
-rw-r--r--sc/source/ui/attrdlg/attrdlg.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/source/ui/attrdlg/attrdlg.cxx b/sc/source/ui/attrdlg/attrdlg.cxx
index 7a80073d9da3..e09a69b5c13f 100644
--- a/sc/source/ui/attrdlg/attrdlg.cxx
+++ b/sc/source/ui/attrdlg/attrdlg.cxx
@@ -90,8 +90,11 @@ void ScAttrDlg::PageCreated(const OUString& rPageId, SfxTabPage& rTabPage)
{
const SfxPoolItem* pInfoItem = pDocSh->GetItem( SID_ATTR_CHAR_FONTLIST );
assert(pInfoItem && "FontListItem not found :-(");
- aSet.Put (SvxFontListItem(static_cast<const SvxFontListItem*>(pInfoItem)->GetFontList(), SID_ATTR_CHAR_FONTLIST ));
- rTabPage.PageCreated(aSet);
+ if (pInfoItem)
+ {
+ aSet.Put (SvxFontListItem(static_cast<const SvxFontListItem*>(pInfoItem)->GetFontList(), SID_ATTR_CHAR_FONTLIST ));
+ rTabPage.PageCreated(aSet);
+ }
}
else if (rPageId == "background")
{