sw/source/filter/ww8/ww8par.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit d2c743b77fa58d1ae0ed2320803ce0ba4372741e
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sun Jul 14 09:52:27 2019 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Jul 15 15:23:05 2019 +0200

    cid#1448275 Dereference before null check
    
    Change-Id: I2c647658c1f9213962e3392cc4206a6e9107e165
    Reviewed-on: https://gerrit.libreoffice.org/75571
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index f5f474f05541..1a76791f8e3c 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -5359,10 +5359,10 @@ ErrCode SwWW8ImplReader::CoreLoad(WW8Glossary const 
*pGloss)
                     for( size_t nHintPos = 0; pHints && nHintPos < 
pHints->Count(); ++nHintPos)
                     {
                         const SwTextAttr *pHt = pHints->Get(nHintPos);
+                        if (pHt->Which() != RES_TXTATR_FLYCNT)
+                            continue;
                         const sal_Int32 st = pHt->GetStart();
-                        if( pHt
-                            && pHt->Which() == RES_TXTATR_FLYCNT
-                            && (st >= 
(*ppBkmk)->GetMarkStart().nContent.GetIndex()) )
+                        if (st >= 
(*ppBkmk)->GetMarkStart().nContent.GetIndex())
                         {
                             SwFrameFormat* pFrameFormat = 
pHt->GetFlyCnt().GetFrameFormat();
                             vecFrameFormat.push_back(pFrameFormat);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to