mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE fixed in MacOS Python SDK suggester
This commit is contained in:
@@ -32,7 +32,7 @@ public class MacPythonSdkFlavor extends PythonSdkFlavor {
|
||||
if ("Current".equals(dir_name) || dir_name.startsWith("2") || dir_name.startsWith("3")) {
|
||||
VirtualFile bin_dir = dir.findChild("bin");
|
||||
if (bin_dir != null && bin_dir.isDirectory()) {
|
||||
VirtualFile python_exe = dir.findChild("python");
|
||||
VirtualFile python_exe = bin_dir.findChild("python");
|
||||
if (python_exe != null) candidates.add(python_exe.getPath());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user