xmloff/source/core/xmlimp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 47d4c59525cadd834688576f96ba25ec619917ad Author: Samuel Mehrbrodt <[email protected]> AuthorDate: Mon Feb 23 14:25:10 2026 +0100 Commit: Samuel Mehrbrodt <[email protected]> CommitDate: Mon Mar 9 13:02:08 2026 +0100 Check if entry exists in storage before accessing it Prevents warnings like warn:xmloff.core:1530244:1530244:xmloff/source/core/xmlimp.cxx:579: DBG_UNHANDLED_EXCEPTION in load when: exception getting BuildId exception: com.sun.star.container.NoSuchElementException message: "at package/source/xstor/xstorage.cxx:2688" Change-Id: I4bdb4d10bf96a9b4d24a928114b2f8351b46148e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200057 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <[email protected]> (cherry picked from commit 4041cdbadc71350e146155f1a8e3c279cbc7dfce) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201263 Tested-by: Jenkins CollaboraOffice <[email protected]> diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx index 873aa8d69431..11ad6734f755 100644 --- a/xmloff/source/core/xmlimp.cxx +++ b/xmloff/source/core/xmlimp.cxx @@ -486,7 +486,7 @@ namespace { { try { OUString streamName = u"l10n"_ustr; - if (xStorage && xStorage->isStreamElement(streamName)) + if (xStorage && xStorage->hasByName(streamName) && xStorage->isStreamElement(streamName)) { auto xIn = xStorage->openStreamElement(streamName, css::embed::ElementModes::READ|css::embed::ElementModes::NOCREATE); if (!xIn)
