diff options
author | rbuj <robert.buj@gmail.com> | 2014-08-16 00:14:26 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-08-16 02:32:02 -0500 |
commit | b418ba93f48e361766f1aaa490292d3049501178 (patch) | |
tree | 514ea860cc09034c21e5e75bd125d5b7458ce7fa /javaunohelper | |
parent | 66c6d1ef204f3507e7663a1b8b1be05b9ec71092 (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.java | 7 |
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)) { |