[Libreoffice-commits] core.git: ucb/source

Caolán McNamara caolanm at redhat.com
Fri Jun 19 09:03:35 PDT 2015


 ucb/source/ucp/webdav-neon/NeonSession.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 1cc396069b7170c12716dbfbbab149701dd2b540
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Jun 19 16:58:50 2015 +0100

    fix assert on loading kde98819-1.html
    
    Change-Id: I3f8ccf2d0642657b3768a237c96f15cf7a7aff97

diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index e1adfe1..d13e843 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx
@@ -349,7 +349,9 @@ namespace {
         {
             nContStart += sPartId.getLength();
             sal_Int32 nContEnd = _rRawString.indexOf( ',', nContStart );
-            sPart = _rRawString.copy( nContStart, nContEnd - nContStart );
+            sPart = nContEnd != -1 ?
+                _rRawString.copy(nContStart, nContEnd - nContStart) :
+                _rRawString.copy(nContStart);
         }
         return sPart;
     }


More information about the Libreoffice-commits mailing list