Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2009-07-22 10:21:42 -0400
committerAndrew Niefer2009-07-22 10:21:42 -0400
commit6f07aa6ffefa64a91390ef7b353128bc379a1ca0 (patch)
treea99f34db02015569d9963f6690f96fba1e8ba82d /bundles/org.eclipse.equinox.p2.touchpoint.eclipse
parentcc1df5f410ed6cf1ecc273b7f874803ae9ccc69d (diff)
downloadrt.equinox.p2-6f07aa6ffefa64a91390ef7b353128bc379a1ca0.tar.gz
rt.equinox.p2-6f07aa6ffefa64a91390ef7b353128bc379a1ca0.tar.xz
rt.equinox.p2-6f07aa6ffefa64a91390ef7b353128bc379a1ca0.zip
bug 277547 - StringIndexOutOfBoundException when setLauncherName is passed an empty string
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.touchpoint.eclipse')
-rw-r--r--bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java
index c494820d2..cf13039e2 100644
--- a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java
+++ b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/Util.java
@@ -252,7 +252,7 @@ public class Util {
public static File getLauncherPath(IProfile profile) {
String name = profile.getProperty(EclipseTouchpoint.PROFILE_PROP_LAUNCHER_NAME);
- if (name == null)
+ if (name == null || name.length() == 0)
name = "eclipse"; //$NON-NLS-1$
return new File(getInstallFolder(profile), getLauncherName(name, getOSFromProfile(profile)));
}

Back to the top