diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-07 14:52:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-01-07 16:58:28 +0100 |
commit | 384c16ab3f76ce0e2733b0176be379585aa7a7ba (patch) | |
tree | 379e3e1620e8a6afd2d924c175e73341c834415e /sw | |
parent | 1a029665ee6902b477c79cdfd08dc3896868c3bf (diff) |
coverity#1427250 Dereference null return value
Change-Id: I2925ed9d7b74f931b4adba08b069b9ef99d16589
Reviewed-on: https://gerrit.libreoffice.org/47532
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport4.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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") ); } |