diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index f46fbdc69c77..8eea1b74f11e 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -1603,7 +1603,9 @@ void SwTextNode::Update( pSortedObjs->UpdateAll(); } // also sort the objs on the page frame - pSortedObjs = pFrame->FindPageFrame()->GetSortedObjs(); + if (SwPageFrame *pPage = pFrame->FindPageFrame()) + pSortedObjs = pPage->GetSortedObjs(); + if (pSortedObjs) // doesn't exist yet if called for inserting as-char fly { pSortedObjs->UpdateAll();