diff options
-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)) { |