diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 21:24:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 21:32:44 +0000 |
commit | 1d88fa76834fc1fb04a285f77e8245a44c9091e8 (patch) | |
tree | 42dfba5a7dd843f01267436713923e92bf18a498 | |
parent | cf0d1237452ce327f046b33db9871fcf1e65c826 (diff) |
guard against empty Story
Change-Id: Ide44aed9a3189b0fd21a8adc039eb61bd3d3dc14
(cherry picked from commit ef68438d384ed6dd919fa0f1a3830d2171f8e002)
-rw-r--r-- | lotuswordpro/source/filter/lwppara.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwppara.cxx b/lotuswordpro/source/filter/lwppara.cxx index 4b204057aec9..327e016536bd 100644 --- a/lotuswordpro/source/filter/lwppara.cxx +++ b/lotuswordpro/source/filter/lwppara.cxx @@ -669,7 +669,7 @@ void LwpPara::RegisterStyle() if (!pPrePara) { LwpStory* pStory = pPara->GetStory(); - pPrePara = pStory->GetLastParaOfPreviousStory(); + pPrePara = pStory ? pStory->GetLastParaOfPreviousStory() : nullptr; if (!pPrePara) { |