summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-08-20 23:02:56 +0200
committerDavid Tardon <dtardon@redhat.com>2014-08-25 03:23:23 -0500
commit352a728ffbe171ea6f9f8e93e143fa24198d8271 (patch)
tree9897dd5e3eb64d616febfdb879b0e9d09cd3775e
parent2d8d35f9f74102b800a3b777a5e3d79dce283ae9 (diff)
Resolves: fdo#82747 Crash on opening wikipedia ODT Book
Test if there's indeed a subnode before testing its type Cherry-picked from 3d34eb4612fa59fae7594399d3d6f798ddb35582 Change-Id: I1bb32652ceb82b0818a8d2cd8d71b46dd96ef2aa Reviewed-on: https://gerrit.libreoffice.org/11050 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org> Reviewed-on: https://gerrit.libreoffice.org/11084 Reviewed-by: David Tardon <dtardon@redhat.com>
-rw-r--r--starmath/source/mathmlexport.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx
index 7fffe8ff342c..7299d087c1eb 100644
--- a/starmath/source/mathmlexport.cxx
+++ b/starmath/source/mathmlexport.cxx
@@ -890,6 +890,7 @@ void SmXMLExport::ExportTable(const SmNode *pNode, int nLevel)
}
else if (pTemp->GetType() == NLINE &&
pTemp->GetNumSubNodes() == 1 &&
+ pTemp->GetSubNode(0) &&
pTemp->GetSubNode(0)->GetType() == NALIGN)
{
// For the Table() construction, the NALIGN node is a child