summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-09 09:52:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-09 12:41:52 +0200
commitf5bb3096d2574756e0e1e62258b7d7604e9ab88f (patch)
treebcc5ab3e5eee09ead889f8b65fcc25016d94cffa /svl
parent69e3b647d27d4fdb8243d6cca86f9287a5be6026 (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.cxx1
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)