eclipse plugin: fix a possible out of bounds exception

This commit is contained in:
Timotei Dolean 2011-07-13 20:46:19 +00:00
parent aae79a8237
commit 6ee95923ee

View file

@ -128,7 +128,7 @@ public class WMLHyperlinkHelper extends HyperlinkHelper
if (mapLocation.startsWith("\"")) //$NON-NLS-1$
mapLocation = mapLocation.substring(1, value.getLength() - 1);
if (mapLocation.startsWith("{")) //$NON-NLS-1$
mapLocation = mapLocation.substring(1, value.getLength() - 1);
mapLocation = mapLocation.substring(1, mapLocation.length( ) - 1);
mapLocation = mapLocation.replaceFirst("~", //$NON-NLS-1$
paths.getUserDir( ).replace('\\','/') + "/data/"); //$NON-NLS-1$