Kaydet (Commit) 00786440 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

ucb: prevent out of bound access in OUString

Change-Id: I451bf13cbf39ec13152d083a6a6728cd043f9fbd
üst 0db950de
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment