summaryrefslogtreecommitdiff
path: root/lotuswordpro/source
diff options
context:
space:
mode:
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r--lotuswordpro/source/filter/lwpproplist.cxx7
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
{