[Libreoffice-commits] core.git: svl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Jul 9 10:42:45 UTC 2020


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

New commits:
commit f5bb3096d2574756e0e1e62258b7d7604e9ab88f
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jul 9 09:52:29 2020 +0100
Commit:     Caolán McNamara <caolanm at 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 <caolanm at 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)


More information about the Libreoffice-commits mailing list