From 44ae2ff6d2271949b2a4d22d017003f948b6aa2a Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Wed, 25 Jun 2014 21:58:47 +0200 Subject: Resolves fdo#54155: Crash when playing with a Group inside a Group MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cherry-picked from 7bd94d73ec56622685d0e23f8b5133ba110524be Change-Id: I89c80fca1cdc8bc88172eaf8057141d5e42a06dc Reviewed-on: https://gerrit.libreoffice.org/9909 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/source/core/frmedt/feshview.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx index 03d3a39b9977..0513275d9bc4 100644 --- a/sw/source/core/frmedt/feshview.cxx +++ b/sw/source/core/frmedt/feshview.cxx @@ -1117,7 +1117,7 @@ bool SwFEShell::ShouldObjectBeSelected(const Point& rPt) // Don't select header / footer objects in body edition and vice-versa SwContact* pContact = static_cast(pObj->GetUserCall()); - if ( !pContact->ObjAnchoredAtPage() ) + if (pContact && !pContact->ObjAnchoredAtPage() ) { const SwPosition& rPos = pContact->GetCntntAnchor(); bool bInHdrFtr = GetDoc()->IsInHeaderFooter( rPos.nNode ); -- cgit v1.2.3