Hi, I have submitted a patch for review:
https://gerrit.libreoffice.org/2041 To pull it, you can do: git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/41/2041/1 Resolves: fdo#60132 Error reading file after inserting comment Change-Id: Ib2b388c78c8f44a626267c2f8d3975b46ead3bd5 (cherry picked from commit 165a53f3a7f08e65055e08ecd4cfc068c5d353b8) --- M xmloff/source/text/txtfldi.cxx 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx index 30dadc7..8f27931 100644 --- a/xmloff/source/text/txtfldi.cxx +++ b/xmloff/source/text/txtfldi.cxx @@ -3782,6 +3782,11 @@ while (xFields->hasMoreElements()) { uno::Reference<beans::XPropertySet> xCurrField(xFields->nextElement(), uno::UNO_QUERY); + uno::Reference<beans::XPropertySetInfo> xPropsInfo(xCurrField->getPropertySetInfo()); + + if (!xPropsInfo->hasPropertyByName(sPropertyName)) + continue; + OUString aFieldName; xCurrField->getPropertyValue(sPropertyName) >>= aFieldName; if (aFieldName == aName) -- To view, visit https://gerrit.libreoffice.org/2041 To unsubscribe, visit https://gerrit.libreoffice.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib2b388c78c8f44a626267c2f8d3975b46ead3bd5 Gerrit-PatchSet: 1 Gerrit-Project: core Gerrit-Branch: libreoffice-4-0 Gerrit-Owner: Caolán McNamara <caol...@redhat.com> _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice