summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorrbuj <robert.buj@gmail.com>2014-09-14 01:22:53 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-09-14 06:45:26 +0000
commit1ebbb8bceb9f8e5876894f04b2e52cf772eb06a0 (patch)
tree078e49bba0783b1eab5319051590cc7ee22cd985 /scripting
parent3327bf17571aed98abcdd565aac523141c009c5f (diff)
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>
Diffstat (limited to 'scripting')
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/PathUtils.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripting/java/com/sun/star/script/framework/provider/PathUtils.java b/scripting/java/com/sun/star/script/framework/provider/PathUtils.java
index af7772f914ca..1bd7bd28f657 100644
--- a/scripting/java/com/sun/star/script/framework/provider/PathUtils.java
+++ b/scripting/java/com/sun/star/script/framework/provider/PathUtils.java
@@ -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();
}