[Libreoffice-commits] core.git: scripting/java

rbuj robert.buj at gmail.com
Sat Sep 13 23:45:52 PDT 2014


 scripting/java/com/sun/star/script/framework/provider/PathUtils.java |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

New commits:
commit 1ebbb8bceb9f8e5876894f04b2e52cf772eb06a0
Author: rbuj <robert.buj at gmail.com>
Date:   Sun Sep 14 01:22:53 2014 +0200

    scripting: Uncaught Exception
    
    Change-Id: I949aa58416dbd80d87c9455009258f7bd2fd8520
    Reviewed-on: https://gerrit.libreoffice.org/11439
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

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 af7772f..1bd7bd2 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();
     }
 


More information about the Libreoffice-commits mailing list