summaryrefslogtreecommitdiff
path: root/sw/source/filter/html/htmltab.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-17 23:36:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-18 08:57:47 +0000
commit71129c2aa3fc9c4d68e5d16c80c750115487b9b4 (patch)
treea022659924dea8fd8b35ba9c4b3dd55865cd25e7 /sw/source/filter/html/htmltab.cxx
parentf9d8fe959d88011d63fc047a8cc00ded1dd2fda1 (diff)
ofz: Null-deref
Change-Id: Ice265d7c868b44c6673f3960dffc227d8352ccd0
Diffstat (limited to 'sw/source/filter/html/htmltab.cxx')
-rw-r--r--sw/source/filter/html/htmltab.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx
index d422f13e5f0f..1361c574fcea 100644
--- a/sw/source/filter/html/htmltab.cxx
+++ b/sw/source/filter/html/htmltab.cxx
@@ -3952,7 +3952,8 @@ void SwHTMLParser::BuildTableCell( HTMLTable *pCurTable, bool bReadOptions,
// If there was an adjustment set for the cell, we need to close it
std::unique_ptr<HTMLAttrContext> xCntxt(PopContext());
- EndContext(xCntxt.get());
+ if (xCntxt)
+ EndContext(xCntxt.get());
}
else
{