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) {