svl/source/numbers/zforlist.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit f5bb3096d2574756e0e1e62258b7d7604e9ab88f
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Thu Jul 9 09:52:29 2020 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Thu Jul 9 12:41:52 2020 +0200

    cid#1465237 silence Dereference after null check
    
    Change-Id: I7014da07d88861e4f08fb9e1006dccb6fc2ad245
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98406
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index a1c529bd58bb..7c1fa0da613e 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -3049,6 +3049,7 @@ OUString SvNumberFormatter::GenerateFormat(sal_uInt32 
nIndex,
 
     if (eType & SvNumFormatType::TIME)
     {
+        assert(pFormat && "with !pFormat eType can only be 
SvNumFormatType::UNDEFINED");
         sString = pFormat->GetFormatStringForTimePrecision( nPrecision );
     }
     else if (nLeadingZeros == 0)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to