summaryrefslogtreecommitdiff
path: root/javaunohelper
diff options
context:
space:
mode:
authorrbuj <robert.buj@gmail.com>2014-08-16 00:14:26 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-08-16 02:32:02 -0500
commitb418ba93f48e361766f1aaa490292d3049501178 (patch)
tree514ea860cc09034c21e5e75bd125d5b7458ce7fa /javaunohelper
parent66c6d1ef204f3507e7663a1b8b1be05b9ec71092 (diff)
javaunohelper: The assigned value is sometimes used
Change-Id: I292921ef5b98ffbae9a0d5b631498a2d6efefbfd Reviewed-on: https://gerrit.libreoffice.org/10941 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'javaunohelper')
-rw-r--r--javaunohelper/com/sun/star/lib/uno/helper/UnoUrl.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/UnoUrl.java b/javaunohelper/com/sun/star/lib/uno/helper/UnoUrl.java
index ac5f05e59d6e..18700def7f68 100644
--- a/javaunohelper/com/sun/star/lib/uno/helper/UnoUrl.java
+++ b/javaunohelper/com/sun/star/lib/uno/helper/UnoUrl.java
@@ -295,12 +295,15 @@ public class UnoUrl {
private static UnoUrlPart parseUnoUrlPart(String thePart)
throws com.sun.star.lang.IllegalArgumentException {
- String partName = thePart;
- String theParamPart = "";
+ String partName;
+ String theParamPart;
int index = thePart.indexOf(",");
if (index != -1) {
partName = thePart.substring(0, index).trim();
theParamPart = thePart.substring(index + 1).trim();
+ } else {
+ partName = thePart;
+ theParamPart = "";
}
if (!isAlphaNumeric(partName)) {