summaryrefslogtreecommitdiff
path: root/ucb/source
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-09-11 18:34:52 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-09-12 01:45:29 +0200
commit007864407b2aeb54ebd4c00eafae9f6e1adada39 (patch)
treee22f089bcea6d5a08eda972e9d3d9ad50c32c9fb /ucb/source
parent0db950ded89aa916fba40d27479a6722ec9a05c7 (diff)
ucb: prevent out of bound access in OUString
Change-Id: I451bf13cbf39ec13152d083a6a6728cd043f9fbd
Diffstat (limited to 'ucb/source')
-rw-r--r--ucb/source/ucp/webdav-neon/NeonSession.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index ef073e04ac6f..f7c98119b061 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx
@@ -2047,7 +2047,7 @@ OUString NeonSession::makeAbsoluteURL( OUString const & rURL ) const
try
{
// Is URL relative or already absolute?
- if ( rURL[ 0 ] != '/' )
+ if ( !rURL.isEmpty() && rURL[ 0 ] != '/' )
{
// absolute.
return OUString( rURL );