Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found 
with Coverity Scan.

3 new defect(s) introduced to LibreOffice found with Coverity Scan.
7 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent 
build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 3 of 3 defect(s)


** CID 1270937:  Null pointer dereferences  (FORWARD_NULL)
/sw/qa/core/macros-test.cxx: 407 in SwMacrosTest::testFindReplace()()


________________________________________________________________________________________________________
*** CID 1270937:  Null pointer dereferences  (FORWARD_NULL)
/sw/qa/core/macros-test.cxx: 407 in SwMacrosTest::testFindReplace()()
401     
402     void SwMacrosTest::testFindReplace()
403     {
404         // we need a full document with view and layout etc. because 
::GetNode()
405         Reference<lang::XComponent> const xComponent =
406             loadFromDesktop("private:factory/swriter", 
"com.sun.star.text.TextDocument");
>>>     CID 1270937:  Null pointer dereferences  (FORWARD_NULL)
>>>     Assigning: "pTxtDoc" = "dynamic_cast <SwXTextDocument 
>>> *>(xComponent.get())".
407         SwXTextDocument *const pTxtDoc = dynamic_cast<SwXTextDocument 
*>(xComponent.get());
408         SwDoc *const pDoc = pTxtDoc->GetDocShell()->GetDoc();
409         SwNodeIndex aIdx(pDoc->GetNodes().GetEndOfContent(), -1);
410         // use a UnoCrsr so it will be corrected when deleting nodes
411         SwUnoCrsr *const pPaM(pDoc->CreateUnoCrsr(SwPosition(aIdx), false));
412     


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://scan.coverity.com/projects/211?tab=overview

To manage Coverity Scan email notifications for 
"libreoffice@lists.freedesktop.org", click 
https://scan.coverity.com/subscriptions/edit?email=libreoffice%40lists.freedesktop.org&token=d6481d718a775246b2340f282ebe5939
 .

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to