From c17668a6dfeca6d1a34d86a11ae54b08f584d5b9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 20 Jun 2017 10:28:51 +0100 Subject: ofz: pSwFontCache my be null early on Change-Id: I9325a02293a221fe63f8936da1e056dce42265e7 --- sw/source/core/txtnode/swfntcch.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sw') 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: */ -- cgit