From 7f75773f59f4e755c8e18b8f604d3ac56d94914e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com> Date: Tue, 30 Nov 2010 13:52:10 +0000 Subject: [PATCH] Resolves: rhbz#657718# Crash in SwObjectFormatterTxtFrm::CreateObjFormatter --- sw/source/core/layout/objectformattertxtfrm.cxx | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sw/source/core/layout/objectformattertxtfrm.cxx b/sw/source/core/layout/objectformattertxtfrm.cxx index 472db36..db63431 100644 --- a/sw/source/core/layout/objectformattertxtfrm.cxx +++ b/sw/source/core/layout/objectformattertxtfrm.cxx @@ -103,7 +103,7 @@ SwObjectFormatterTxtFrm* SwObjectFormatterTxtFrm::CreateObjFormatter( if ( _rAnchorTxtFrm.IsFollow() ) { pMasterOfAnchorFrm = _rAnchorTxtFrm.FindMaster(); - while ( pMasterOfAnchorFrm->IsFollow() ) + while ( pMasterOfAnchorFrm && pMasterOfAnchorFrm->IsFollow() ) { pMasterOfAnchorFrm = pMasterOfAnchorFrm->FindMaster(); } -- 1.7.3.2