diff options
author | Noel Grandin <noel@peralex.com> | 2020-09-25 09:26:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-25 11:13:40 +0200 |
commit | ada652802db80202090fe55915d0b6ce648de59f (patch) | |
tree | 3552732ac4190c531954a85486c7ae51ec10c710 /starmath | |
parent | 926a1a16a061b666a0b125cd2d15461716655e78 (diff) |
tdf#137008 mml crash on load
Change-Id: I1d35f1b6cb7234850c6847b19848be186f2e1955
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103370
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/visitors.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx index 37a8fc7ab595..f4db5c10257f 100644 --- a/starmath/source/visitors.cxx +++ b/starmath/source/visitors.cxx @@ -2335,7 +2335,8 @@ void SmNodeToTextVisitor::Visit( SmMatrixNode* pNode ) { SmNode* pSubNode = pNode->GetSubNode( i * pNode->GetNumCols( ) + j ); Separate( ); - pSubNode->Accept( this ); + if (pSubNode) + pSubNode->Accept( this ); Separate( ); if (j != pNode->GetNumCols() - 1U) Append( "#" ); |