diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-09 09:52:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-09 12:41:52 +0200 |
commit | f5bb3096d2574756e0e1e62258b7d7604e9ab88f (patch) | |
tree | bcc5ab3e5eee09ead889f8b65fcc25016d94cffa /svl | |
parent | 69e3b647d27d4fdb8243d6cca86f9287a5be6026 (diff) |
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@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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) |