summaryrefslogtreecommitdiff
path: root/starmath/source/node.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/node.cxx')
-rw-r--r--starmath/source/node.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index e0c72822f305..469eee1b64ef 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -2511,7 +2511,8 @@ void SmMatrixNode::CreateTextFromNode(String &rText)
for (sal_uInt16 j = 0; j < nNumCols; j++)
{
SmNode *pNode = GetSubNode(i * nNumCols + j);
- pNode->CreateTextFromNode(rText);
+ if (pNode)
+ pNode->CreateTextFromNode(rText);
if (j != nNumCols-1)
rText += "# ";
}