diff --git a/sw/source/core/frmedt/fecopy.cxx b/sw/source/core/frmedt/fecopy.cxx index c0ee3c3f6e1c..ee28fb587a26 100644 --- a/sw/source/core/frmedt/fecopy.cxx +++ b/sw/source/core/frmedt/fecopy.cxx @@ -1079,7 +1079,7 @@ SwFEShell::Paste(SwDoc& rClpDoc, bool const bNestedTable) { lcl_InitSelectFlyOrDrawFormat(pFlyFormat, *this, isSelect); } - if (isSelect && inserted.size() == 1) + if (isSelect && inserted.size() == 1 && inserted.front()) { if (inserted.front()->Which() == RES_FLYFRMFMT && GetDoc()->GetNodes()[inserted.front()->GetContent().GetContentIdx()->GetIndex() + 1]->IsGrfNode())