diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx index 63f1e366a945..9e14fb5d37a8 100644 --- a/svtools/source/misc/embedhlp.cxx +++ b/svtools/source/misc/embedhlp.cxx @@ -477,6 +477,10 @@ void EmbeddedObjectRef::GetReplacement( bool bUpdate ) return; } + // Missing graphic can crash + if (!mpImpl->oGraphic) + mpImpl->oGraphic.emplace(); + std::unique_ptr pGraphicStream(GetGraphicStream( bUpdate )); if (!pGraphicStream && aOldGraphic.IsNone()) {