[Libreoffice-commits] core.git: lotuswordpro/source
Caolán McNamara
caolanm at redhat.com
Sun Dec 13 08:18:08 PST 2015
lotuswordpro/source/filter/lwpproplist.cxx | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
New commits:
commit a065eda2383e8d2d8de3cf0a280f6699c05da425
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Dec 13 16:17:30 2015 +0000
protect both EnumNamedProperty branches the same way
Change-Id: I93669a6460806c1d4c35669a639667b0c6f3f4ab
diff --git a/lotuswordpro/source/filter/lwpproplist.cxx b/lotuswordpro/source/filter/lwpproplist.cxx
index a0a59f1..119179e 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
{
More information about the Libreoffice-commits
mailing list