diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-12-23 11:31:23 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-12-23 14:23:51 +0100 |
commit | ce913724f648061b534098f2deda362791e15386 (patch) | |
tree | 225d6e214ecb82d3a0234c61055820fb82f034dc /sw | |
parent | cac9c7db6257b27724d90d4a355e52e456ef7e08 (diff) |
crashreporting: check Lower()
See https://crashreport.libreoffice.org/stats/signature/SwRowFrame::ShouldRowKeepWithNext(bool)
Change-Id: I49ac8312e0288471780c405bb2cd7eb66163ab43
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179233
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/tabfrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx index 20755efa8d2c..eced2e301c8a 100644 --- a/sw/source/core/layout/tabfrm.cxx +++ b/sw/source/core/layout/tabfrm.cxx @@ -5645,7 +5645,7 @@ bool SwRowFrame::ShouldRowKeepWithNext( const bool bCheckParents ) const return false; const SwCellFrame* pCell = static_cast<const SwCellFrame*>(Lower()); - const SwFrame* pText = pCell->Lower(); + const SwFrame* pText = pCell ? pCell->Lower() : nullptr; return pText && pText->IsTextFrame() && !pText->IsHiddenNow() && static_cast<const SwTextFrame*>(pText)->GetTextNodeForParaProps()->GetSwAttrSet().GetKeep(bCheckParents).GetValue(); |