summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-09-15 13:31:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-09-15 16:56:24 +0200
commit777180ecf17fa384c95276c700df7b32eb73f974 (patch)
treea5df828f726d7b445a616f3e09822b270a470d63
parent8ed86da5ff66ace29e99d5a7871500c1acb37265 (diff)
coverity#1439333 Dereference null return value
Change-Id: Ia67ca842b2ae54ad8f07d80ea2df23203ed88262 Reviewed-on: https://gerrit.libreoffice.org/60520 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport2.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx
index 5e1ce6a70ffe..0ee86d675247 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport2.cxx
@@ -346,7 +346,9 @@ DECLARE_OOXMLEXPORT_TEST(testMathVerticalStacks, "math-vertical_stacks.docx")
DECLARE_OOXMLEXPORT_TEST(testTable, "table.odt")
{
// Make sure we write qFormat for well-known style names.
- assertXPath(parseExport("word/styles.xml"), "//w:style[@w:styleId='Normal']/w:qFormat", 1);
+ xmlDocPtr pXmlDocCT = parseExport("word/styles.xml");
+ CPPUNIT_ASSERT(pXmlDocCT);
+ assertXPath(pXmlDocCT, "//w:style[@w:styleId='Normal']/w:qFormat", 1);
}
struct SingleLineBorders {