show packages for detected sdk, fixed NPE if no interpreter selected

This commit is contained in:
Ekaterina Tuzova
2014-02-11 13:34:11 +04:00
parent 846cd8372d
commit e7bd55b7ec
2 changed files with 2 additions and 1 deletions
@@ -145,7 +145,7 @@ public class PyActiveSdkConfigurable implements UnnamedConfigurable {
dialog.show();
return;
}
if (!PySdkListCellRenderer.SEPARATOR.equals(item.toString()))
if (!PySdkListCellRenderer.SEPARATOR.equals(item))
super.setSelectedItem(item);
}
};
@@ -6,6 +6,7 @@ import com.intellij.openapi.projectRoots.impl.ProjectJdkImpl;
public class PyDetectedSdk extends ProjectJdkImpl {
public PyDetectedSdk(String name, SdkTypeId sdkType) {
super(name, sdkType);
setHomePath(name);
}
}