summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-06-07 12:54:12 +0200
committerMiklos Vajna <vmiklos@collabora.com>2022-06-08 12:53:10 +0200
commit437acab38f2404886a2b83138eb9eb11c4146a76 (patch)
tree99218857ec51cf77fc551f1599ba4f0808be0fca /sw/source/core
parentd2a5b4bc0b8c8d1dd82133719a3ef5cc01b0cbbe (diff)
sw: fix crash in SwFEShell::SelectObj()
Fatal signal received: SIGSEGV code: 1 for address: 0x0 SwLayoutFrame::Lower() const sw/source/core/inc/layfrm.hxx:101 SwFEShell::SelectObj(Point const&, unsigned char, SdrObject*) sw/source/core/frmedt/feshview.cxx:317 SwEditWin::MouseButtonDown(MouseEvent const&) sw/source/uibase/docvw/edtwin.cxx:? Change-Id: I6c4076eef21dd80381b37ed89aa2dc8bc20fbc98 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135491 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw/source/core')
-rw-r--r--sw/source/core/frmedt/feshview.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx
index 44fbce476a7a..464cd46412b6 100644
--- a/sw/source/core/frmedt/feshview.cxx
+++ b/sw/source/core/frmedt/feshview.cxx
@@ -314,7 +314,7 @@ bool SwFEShell::SelectObj( const Point& rPt, sal_uInt8 nFlag, SdrObject *pObj )
{
const SwFlyFrame *pTmp = GetFlyFromMarked( &rMrkList, this );
OSL_ENSURE( pTmp, "Graphic without Fly" );
- if ( static_cast<const SwNoTextFrame*>(pTmp->Lower())->HasAnimation() )
+ if ( pTmp && static_cast<const SwNoTextFrame*>(pTmp->Lower())->HasAnimation() )
static_cast<const SwNoTextFrame*>(pTmp->Lower())->StopAnimation( GetOut() );
}
}