From ac8782bd51d3e178690f9f6ad942e06f67e808c1 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Sat, 12 Nov 2011 00:01:51 +0100 Subject: [PATCH] Related: fdo#37716 null pointer check for the unit test --- writerfilter/source/rtftok/rtfdocumentimpl.cxx | 2 ++ 1 file changed, 2 insertions(+) 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) {