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:54 +0000 |
commit | 07cef793f3cbe8bdada82c76e13e3ec1a7c3332d (patch) | |
tree | f00a1382a55b4d8716e56e8455fed5cb0e3c93db /lotuswordpro | |
parent | 517f2d46aab495b630b6d0ba805cacf01c78f364 (diff) |
protect both EnumNamedProperty branches the same way
Change-Id: I93669a6460806c1d4c35669a639667b0c6f3f4ab
(cherry picked from commit a065eda2383e8d2d8de3cf0a280f6699c05da425)
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 { |