summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-10 10:19:12 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-10 10:19:39 +0000
commit6c296afad6b04328a596a92326aa50b1b480aba0 (patch)
tree11c6852a5c1bf0c6c152f08a2c7cdc48ae060948
parentb3b0854b91033fdab5e67b9333e401490c740ec1 (diff)
protect against missing Ruby Marker
Change-Id: I04809443b5dc50904654936e608360b57c2e85c3 (cherry picked from commit 215516a52fd01170bb4a79828b0f0948884b727a)
-rw-r--r--lotuswordpro/source/filter/lwpframelayout.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/lwpframelayout.cxx b/lotuswordpro/source/filter/lwpframelayout.cxx
index 1182172a1c7a..d15e02450b8f 100644
--- a/lotuswordpro/source/filter/lwpframelayout.cxx
+++ b/lotuswordpro/source/filter/lwpframelayout.cxx
@@ -1235,6 +1235,8 @@ void LwpRubyLayout::ConvertContentText()
void LwpRubyLayout::RegisterStyle()
{
LwpRubyMarker* pMarker = GetMarker();
+ if (!pMarker)
+ throw std::runtime_error("missing Ruby Marker");
XFRubyStyle* pRubyStyle = new XFRubyStyle;