sw/qa/extras/ooxmlexport/ooxmlexport4.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 384c16ab3f76ce0e2733b0176be379585aa7a7ba
Author: Caolán McNamara <caol...@redhat.com>
Date:   Sun Jan 7 14:52:39 2018 +0000

    coverity#1427250 Dereference null return value
    
    Change-Id: I2925ed9d7b74f931b4adba08b069b9ef99d16589
    Reviewed-on: https://gerrit.libreoffice.org/47532
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
index f724761842a7..1ff6bafb7e18 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
@@ -804,6 +804,7 @@ DECLARE_OOXMLEXPORT_TEST(testParagraphWithComments, 
"paragraphWithComments.docx"
 DECLARE_OOXMLEXPORT_TEST(testTdf104707_urlComment, "tdf104707_urlComment.odt")
 {
     xmlDocPtr pXmlComm = parseExport("word/comments.xml");
+    CPPUNIT_ASSERT(pXmlComm);
     CPPUNIT_ASSERT_EQUAL( 
OUString("https://bugs.documentfoundation.org/show_bug.cgi?id=104707";), 
getXPathContent(pXmlComm,"/w:comments/w:comment/w:p/w:hyperlink/w:r/w:t") );
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to