cid#1465510 Dereference null return value
and cid#1465511 Dereference null return value Change-Id: Ie297ef070ecf712e989704b8c07907e2f6453cd9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99428 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
592a02b286
commit
0e1ea352a0
1 changed files with 6 additions and 0 deletions
|
@ -5650,6 +5650,8 @@ void VCLXNumericField::setProperty( const OUString& PropertyName, const css::uno
|
|||
if ( bVoid )
|
||||
{
|
||||
NumericFormatter* pNumericFormatter = static_cast<NumericFormatter*>(GetFormatter());
|
||||
if (!pNumericFormatter)
|
||||
return;
|
||||
pNumericFormatter->EnableEmptyFieldValue( true );
|
||||
pNumericFormatter->SetEmptyFieldValue();
|
||||
}
|
||||
|
@ -5695,6 +5697,8 @@ void VCLXNumericField::setProperty( const OUString& PropertyName, const css::uno
|
|||
if ( Value >>= b )
|
||||
{
|
||||
NumericFormatter* pNumericFormatter = static_cast<NumericFormatter*>(GetFormatter());
|
||||
if (!pNumericFormatter)
|
||||
return;
|
||||
pNumericFormatter->SetUseThousandSep( b );
|
||||
}
|
||||
}
|
||||
|
@ -5954,6 +5958,8 @@ void VCLXMetricField::setProperty( const OUString& PropertyName, const css::uno:
|
|||
if ( Value >>= b )
|
||||
{
|
||||
NumericFormatter* pNumericFormatter = static_cast<NumericFormatter*>(GetFormatter());
|
||||
if (!pNumericFormatter)
|
||||
return;
|
||||
pNumericFormatter->SetUseThousandSep( b );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue