diff options
-rw-r--r-- | svtools/source/misc/embedhlp.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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<SvStream> pGraphicStream(GetGraphicStream( bUpdate )); if (!pGraphicStream && aOldGraphic.IsNone()) { |