sw/qa/extras/ooxmlexport/ooxmlexport2.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 777180ecf17fa384c95276c700df7b32eb73f974 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sat Sep 15 13:31:06 2018 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sat Sep 15 16:56:24 2018 +0200 coverity#1439333 Dereference null return value Change-Id: Ia67ca842b2ae54ad8f07d80ea2df23203ed88262 Reviewed-on: https://gerrit.libreoffice.org/60520 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> 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 { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits