[Libreoffice-commits] core.git: javaunohelper/com
rbuj
robert.buj at gmail.com
Sat Aug 16 00:32:22 PDT 2014
javaunohelper/com/sun/star/lib/uno/helper/UnoUrl.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit b418ba93f48e361766f1aaa490292d3049501178
Author: rbuj <robert.buj at gmail.com>
Date: Sat Aug 16 00:14:26 2014 +0200
javaunohelper: The assigned value is sometimes used
Change-Id: I292921ef5b98ffbae9a0d5b631498a2d6efefbfd
Reviewed-on: https://gerrit.libreoffice.org/10941
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
Tested-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/UnoUrl.java b/javaunohelper/com/sun/star/lib/uno/helper/UnoUrl.java
index ac5f05e..18700de 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)) {
More information about the Libreoffice-commits
mailing list