summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-16 15:50:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-16 15:52:59 +0000
commit6a9f2f04d29e7df748ed4b51081ae5035cf46f56 (patch)
tree1b802d58961ba84c5e7b6d59bd03931e9921a92b
parentd9533e4c3f36c283681893c66b11343834ca45fa (diff)
ofz: Null-deref
Change-Id: I2a0a6fdfe678e898d73e2bdbfe67764300bde494
-rw-r--r--sw/source/filter/html/htmltab.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx
index 18d3a45f62af..d422f13e5f0f 100644
--- a/sw/source/filter/html/htmltab.cxx
+++ b/sw/source/filter/html/htmltab.cxx
@@ -3960,6 +3960,8 @@ void SwHTMLParser::BuildTableCell( HTMLTable *pCurTable, bool bReadOptions,
while( m_aContexts.size() > m_nContextStAttrMin )
{
std::unique_ptr<HTMLAttrContext> xCntxt(PopContext());
+ if (!xCntxt)
+ break;
ClearContext(xCntxt.get());
}
}