summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-12 09:10:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-12 09:22:16 +0000
commitaa2480daae4b87d37e9c7ce226dd0082a54fc254 (patch)
tree3d5a23eee978b63db04141210dadc0fdf3721f53 /sw/source
parent581820cbb0542f5d1401c1fac4bfb6efee72937c (diff)
ofz: Null-deref
Change-Id: I83560b28d30d76c48b2283940e90e1b2c2bc9db5
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/filter/html/htmltab.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx
index 4b4569117e50..84e7b3b31a2f 100644
--- a/sw/source/filter/html/htmltab.cxx
+++ b/sw/source/filter/html/htmltab.cxx
@@ -2737,6 +2737,9 @@ const SwStartNode *SwHTMLParser::InsertTableSection( sal_uInt16 nPoolId )
m_xTable->IncBoxCount();
}
+ if (!pStNd)
+ throw std::runtime_error("missing table start node");
+
return pStNd;
}