summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-10 21:24:32 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-10 21:31:16 +0000
commitef68438d384ed6dd919fa0f1a3830d2171f8e002 (patch)
tree66ff3a28497380a8d0ab05f4880e721029db458d /lotuswordpro
parent1e0b9881b4dc7d002d5da767f1476fb1c2147fc7 (diff)
guard against empty Story
Change-Id: Ide44aed9a3189b0fd21a8adc039eb61bd3d3dc14
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwppara.cxx2
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)
{