scripting: Uncaught Exception

Change-Id: I949aa58416dbd80d87c9455009258f7bd2fd8520
Reviewed-on: https://gerrit.libreoffice.org/11439
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
rbuj
2014-09-14 01:22:53 +02:00
committed by Noel Grandin
parent 3327bf1757
commit 1ebbb8bceb

View File

@@ -69,7 +69,15 @@ public class PathUtils {
{
buff.append('/');
}
buff.append( java.net.URLEncoder.encode( (String)t.nextElement(),"UTF-8" ) ); }
try
{
buff.append( java.net.URLEncoder.encode( (String)t.nextElement(), "UTF-8" ) );
}
catch (java.io.UnsupportedEncodingException e)
{
e.printStackTrace();
}
}
return buff.toString();
}