eclipse plugin: fix a possible out of bounds exception
This commit is contained in:
parent
aae79a8237
commit
6ee95923ee
1 changed files with 1 additions and 1 deletions
|
@ -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$
|
||||
|
|
Loading…
Add table
Reference in a new issue