summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/txtnode/swfntcch.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/txtnode/swfntcch.cxx b/sw/source/core/txtnode/swfntcch.cxx
index bc4ec4d5bf1c..f8788d241d2b 100644
--- a/sw/source/core/txtnode/swfntcch.cxx
+++ b/sw/source/core/txtnode/swfntcch.cxx
@@ -66,8 +66,10 @@ SwCacheObj *SwFontAccess::NewObj( )
SAL_DLLPUBLIC_EXPORT void FlushFontCache()
{
- pSwFontCache->Flush();
- pFntCache->Flush();
+ if (pSwFontCache)
+ pSwFontCache->Flush();
+ if (pFntCache)
+ pFntCache->Flush();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */