diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-13 16:17:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-13 16:17:30 +0000 |
commit | a065eda2383e8d2d8de3cf0a280f6699c05da425 (patch) | |
tree | ee766d1638e2c118af66b8c8b8104b81cc5cf43e /lotuswordpro | |
parent | 0876868a14c7d139ed2a79ece989c84239a2c853 (diff) |
protect both EnumNamedProperty branches the same way
Change-Id: I93669a6460806c1d4c35669a639667b0c6f3f4ab
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpproplist.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwpproplist.cxx b/lotuswordpro/source/filter/lwpproplist.cxx index a0a59f1abd64..119179e6ce73 100644 --- a/lotuswordpro/source/filter/lwpproplist.cxx +++ b/lotuswordpro/source/filter/lwpproplist.cxx @@ -127,11 +127,10 @@ OUString LwpPropList::EnumNamedProperty(OUString& name,OUString& value) value = pElement->GetValue().str(); name = pElement->GetName().str(); pElement = pElement->GetNext(); - return pElement->GetName().str(); + if(pElement) + return pElement->GetName().str(); } - else - return OUString(""); - + return OUString(""); } else { |