[Libreoffice-commits] core.git: sw/qa

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Sep 15 14:56:46 UTC 2018


 sw/qa/extras/ooxmlexport/ooxmlexport2.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 777180ecf17fa384c95276c700df7b32eb73f974
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Sep 15 13:31:06 2018 +0100
Commit:     Caolán McNamara <caolanm at 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 <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at 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 {


More information about the Libreoffice-commits mailing list