From 213f32fc9839fce3b01af938293eca331b544dd3 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Wed, 26 Jun 2013 22:31:11 +0200 Subject: fdo#66101: lowriter crashed when trying to open .docx file Change-Id: I516bcb4bc18806d5a83f94c0776bd0f918a1e927 Reviewed-on: https://gerrit.libreoffice.org/4550 Reviewed-by: Fridrich Strba Tested-by: Fridrich Strba Reviewed-on: https://gerrit.libreoffice.org/4611 --- sw/source/core/layout/frmtool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx index 73d891ba4924..56fd4dd0f2b9 100644 --- a/sw/source/core/layout/frmtool.cxx +++ b/sw/source/core/layout/frmtool.cxx @@ -1931,7 +1931,7 @@ static bool lcl_hasTabFrm(const SwTxtFrm* pTxtFrm) if (pObject->IsA(TYPE(SwFlyFrm))) { SwFlyFrm* pFly = (SwFlyFrm*)pObject; - if (pFly->Lower()->IsTabFrm()) + if (pFly->Lower() && pFly->Lower()->IsTabFrm()) return true; } } -- cgit v1.2.3