[Libreoffice-commits] core.git: sc/source

Caolán McNamara caolanm at redhat.com
Mon Nov 20 12:39:37 UTC 2017


 sc/source/filter/excel/xichart.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cd0dd31086bb43fcfcc95beb11aa30bb68d6c485
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Nov 20 09:32:32 2017 +0000

    ofz#4334 Null-dereference READ
    
    Change-Id: I64cf71566248d81713f251d95d435d51701d3188
    Reviewed-on: https://gerrit.libreoffice.org/44949
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/filter/excel/xichart.cxx b/sc/source/filter/excel/xichart.cxx
index 571c47467576..4243fd08221e 100644
--- a/sc/source/filter/excel/xichart.cxx
+++ b/sc/source/filter/excel/xichart.cxx
@@ -1909,7 +1909,7 @@ void XclImpChSeries::FinalizeDataFormats()
         for (auto const& trendLine : maTrendLines)
         {
             trendLine->SetDataFormat(mxSeriesFmt);
-            if (mxTitleLink->HasString())
+            if (mxTitleLink && mxTitleLink->HasString())
             {
                 trendLine->SetTrendlineName(mxTitleLink->GetString());
             }


More information about the Libreoffice-commits mailing list