From bccfa1cfdffe1727fb7bb97cc578c4ab5b1d717e Mon Sep 17 00:00:00 2001 From: Roman Chernyatchik Date: Fri, 16 Jul 2010 01:19:29 +0400 Subject: [PATCH] NPE fixed in MacOS Python SDK suggester --- python/src/com/jetbrains/python/sdk/MacPythonSdkFlavor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/sdk/MacPythonSdkFlavor.java b/python/src/com/jetbrains/python/sdk/MacPythonSdkFlavor.java index e7a22a8ca23f..99e47afd8758 100644 --- a/python/src/com/jetbrains/python/sdk/MacPythonSdkFlavor.java +++ b/python/src/com/jetbrains/python/sdk/MacPythonSdkFlavor.java @@ -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()); } }