summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/filter/excel/xichart.cxx2
1 files changed, 1 insertions, 1 deletions
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());
}