sc/source/filter/xml/XMLTrackedChangesContext.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 52c0c8a2b5a38f02125460c6e21d21c2e8c656cd
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sat Jul 16 21:12:05 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun Jul 17 12:22:41 2022 +0200

    cid#1507325 Unchecked return value
    
    Change-Id: Ie47ba66cc83130472c68dc5f45c56cd20c9d406f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137143
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sc/source/filter/xml/XMLTrackedChangesContext.cxx 
b/sc/source/filter/xml/XMLTrackedChangesContext.cxx
index 8294eb979a92..a14eab484e0a 100644
--- a/sc/source/filter/xml/XMLTrackedChangesContext.cxx
+++ b/sc/source/filter/xml/XMLTrackedChangesContext.cxx
@@ -431,7 +431,8 @@ css::uno::Reference< css::xml::sax::XFastContextHandler > 
ScXMLChangeInfoContext
 void SAL_CALL ScXMLChangeInfoContext::endFastElement( sal_Int32 /*nElement*/ )
 {
     aInfo.sUser = sAuthorBuffer.makeStringAndClear();
-    ::sax::Converter::parseDateTime(aInfo.aDateTime, sDateTimeBuffer);
+    if (!::sax::Converter::parseDateTime(aInfo.aDateTime, sDateTimeBuffer))
+        SAL_WARN("sc.filter", "ScXMLChangeInfoContext: broken DateTime '" << 
sDateTimeBuffer.toString() << "'");
     sDateTimeBuffer.setLength(0);
     aInfo.sComment = sCommentBuffer.makeStringAndClear();
     pChangeTrackingImportHelper->SetActionInfo(aInfo);

Reply via email to