summaryrefslogtreecommitdiff
path: root/writerfilter/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-11-12 00:01:51 +0100
committerMiklos Vajna <vmiklos@frugalware.org>2011-11-12 00:03:56 +0100
commitac8782bd51d3e178690f9f6ad942e06f67e808c1 (patch)
treeb4bc70566e8d4322528e588322975762f6669e2f /writerfilter/source
parent444d04b60b17efb481cd34949e133119f6764845 (diff)
Related: fdo#37716 null pointer check for the unit test
Diffstat (limited to 'writerfilter/source')
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index 96c0adddaf75..9cc025c7085b 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -754,6 +754,8 @@ bool RTFDocumentImpl::inFrame()
void RTFDocumentImpl::checkChangedFrame()
{
+ if (!getModelFactory().is())
+ return;
// Check if this is a frame.
if (inFrame() && !m_bWasInFrame)
{