Hi,

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

1 new defect(s) introduced to LibreOffice found with Coverity Scan.


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


** CID 1516102:  Null pointer dereferences  (REVERSE_INULL)
/sw/source/core/doc/doctxm.cxx: 740 in lcl_FindChapterNode(const SwNode &, 
const SwRootFrame *, unsigned char)()


________________________________________________________________________________________________________
*** CID 1516102:  Null pointer dereferences  (REVERSE_INULL)
/sw/source/core/doc/doctxm.cxx: 740 in lcl_FindChapterNode(const SwNode &, 
const SwRootFrame *, unsigned char)()
734                 pNd = GetBodyTextNode( pNd->GetDoc(), aPos, *pFrame );
735                 OSL_ENSURE( pNd, "Where's the paragraph?" );
736                 // tdf#151462 - search for outline node containing the 
current node
737                 return pNd->FindOutlineNodeOfLevel(pNd->GetSectionLevel() - 
1, pLayout);
738             }
739         }
>>>     CID 1516102:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "pNd" suggests that it may be null, but it has already 
>>> been dereferenced on all paths leading to the check.
740         return pNd ? pNd->FindOutlineNodeOfLevel(nLvl, pLayout) : nullptr;
741     }
742     
743     static bool IsHeadingContained(const SwTextNode* pChptrNd, const 
SwNode& rNd)
744     {
745         const SwNode* pNd = &rNd;


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DaqmQ_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJi1Fc6SYLjvdA80RnHOf-2FUIOGck7H5HVY6ZM-2F4UQDks1TWUu1TffsfWWxnqpg4LTHDwQjNUb5-2BQ2Z7YBLW7mri2wdeSFKXG81mpwHfbJdsHoNutarmSozWPucbn-2FMxoapcRGaSJgKKhh57eCjo9jziZtFJHOA8SLhmANEV9cPd9wo-3D

Reply via email to