diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-03 14:11:46 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-03 20:45:20 +0100 |
commit | bd74993aef9b30ca42810543d8b8bf13490ee9ce (patch) | |
tree | eaa9567ec2348bc1d34df9ee74eff69f9f8e0b53 /sc | |
parent | be7d7d0f5b8657f4981b7622e8ce874a7cb25d2d (diff) |
ofz#4043 Null-deference READ
Change-Id: I2af7adc55c5b219086aad3157ccac1ce88a8ba97
Reviewed-on: https://gerrit.libreoffice.org/44266
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xichart.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xichart.cxx b/sc/source/filter/excel/xichart.cxx index 49aa0c9ac3c9..627c8f998521 100644 --- a/sc/source/filter/excel/xichart.cxx +++ b/sc/source/filter/excel/xichart.cxx @@ -1233,9 +1233,9 @@ namespace { void lclUpdateText( XclImpChTextRef& rxText, const XclImpChText* xDefText ) { - if( rxText ) + if (rxText) rxText->UpdateText( xDefText ); - else + else if (xDefText) { XclImpChTextRef xNew(new XclImpChText(*xDefText)); rxText = xNew; |