starmath/source/visitors.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit ada652802db80202090fe55915d0b6ce648de59f
Author:     Noel Grandin <[email protected]>
AuthorDate: Fri Sep 25 09:26:31 2020 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Fri Sep 25 11:13:40 2020 +0200

    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 <[email protected]>

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( "#" );
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to