[platform] makes "edit custom VM options" action work with relative paths

This commit is contained in:
Roman Shevchenko
2017-06-15 11:56:33 +03:00
parent 4a14b0b2e5
commit 9c86885ea0
@@ -174,6 +174,7 @@ public class VMOptions {
return null;
}
vmOptionsFile = new File(vmOptionsFile).getAbsolutePath();
if (!FileUtil.isAncestor(PathManager.getHomePath(), vmOptionsFile, true)) {
// a file is located outside the IDE installation - meaning it is safe to overwrite
return new File(vmOptionsFile);