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:
Caolán McNamara 2020-07-25 11:47:52 +01:00
parent 592a02b286
commit 0e1ea352a0

View file

@ -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 );
}
}