summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-06-20 10:28:51 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-06-20 10:29:12 +0100
commitc17668a6dfeca6d1a34d86a11ae54b08f584d5b9 (patch)
tree80fe52b92ed2407d32705fe444e1d4410308c824 /sw
parent27fa7eff1d06914750fbda2582c655ddbb21dfa3 (diff)
ofz: pSwFontCache my be null early on
Change-Id: I9325a02293a221fe63f8936da1e056dce42265e7
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: */