tools/source/xml/XmlWalker.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 2644351601979f61419d87372788bced4cc9001f
Author:     Mike Kaganski <[email protected]>
AuthorDate: Thu Nov 20 14:36:23 2025 +0100
Commit:     Mike Kaganski <[email protected]>
CommitDate: Thu Nov 20 18:31:44 2025 +0100

    Avoid "Entity: line 1: parser error : Document is empty" console noise
    
    Seen when starting with a clean profile.
    
    Change-Id: Ic3cc316a8e4c5e7a4aa817614844ec6886034d29
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194275
    Reviewed-by: Noel Grandin <[email protected]>
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/tools/source/xml/XmlWalker.cxx b/tools/source/xml/XmlWalker.cxx
index f486cef36b34..014779baccfd 100644
--- a/tools/source/xml/XmlWalker.cxx
+++ b/tools/source/xml/XmlWalker.cxx
@@ -47,6 +47,8 @@ XmlWalker::~XmlWalker()
 bool XmlWalker::open(SvStream* pStream)
 {
     std::size_t nSize = pStream->remainingSize();
+    if (nSize == 0)
+        return false;
     std::vector<sal_uInt8> aBuffer(nSize + 1);
     pStream->ReadBytes(aBuffer.data(), nSize);
     aBuffer[nSize] = 0;

Reply via email to