From b418ba93f48e361766f1aaa490292d3049501178 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 16 Aug 2014 00:14:26 +0200 Subject: javaunohelper: The assigned value is sometimes used Change-Id: I292921ef5b98ffbae9a0d5b631498a2d6efefbfd Reviewed-on: https://gerrit.libreoffice.org/10941 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- javaunohelper/com/sun/star/lib/uno/helper/UnoUrl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'javaunohelper/com/sun') 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)) { -- cgit