IDEA-60669 Native Mac restarter crash

This commit is contained in:
Alexey Pegov
2010-11-08 18:20:36 +03:00
parent 77540b993d
commit 1671bb9f62
@@ -44,7 +44,7 @@ public class MacRestarter {
try {
final String executablePath = Foundation.toStringViaUTF8(stringURL);
final URL url = new URL(executablePath);
final String path = url.getPath();
final String path = url.getPath().replace("%20", " ");
if (path.contains(".app")) {
final int appIndex = path.indexOf(".app");
final String appPath = path.substring(0, appIndex + 4);