summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-25 11:47:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-25 15:01:41 +0200
commit0e1ea352a0b9063aa0b467c6ae279d0b9da51ab4 (patch)
tree45f9356665b845850058edacff0f024a2d48077c /toolkit
parent592a02b2869aa04cb6d95cb3d491cd7c5455bd0a (diff)
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>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxwindows.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx
index 0986a3a77cce..f3a29af6465b 100644
--- a/toolkit/source/awt/vclxwindows.cxx
+++ b/toolkit/source/awt/vclxwindows.cxx
@@ -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 );
}
}