Kaydet (Commit) ef68438d authored tarafından Caolán McNamara's avatar Caolán McNamara

guard against empty Story

Change-Id: Ide44aed9a3189b0fd21a8adc039eb61bd3d3dc14
üst 1e0b9881
...@@ -669,7 +669,7 @@ void LwpPara::RegisterStyle() ...@@ -669,7 +669,7 @@ void LwpPara::RegisterStyle()
if (!pPrePara) if (!pPrePara)
{ {
LwpStory* pStory = pPara->GetStory(); LwpStory* pStory = pPara->GetStory();
pPrePara = pStory->GetLastParaOfPreviousStory(); pPrePara = pStory ? pStory->GetLastParaOfPreviousStory() : nullptr;
if (!pPrePara) if (!pPrePara)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment