mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't add nulls to project sdks
This commit is contained in:
@@ -267,11 +267,15 @@ public class PyActiveSdkConfigurable implements UnnamedConfigurable {
|
||||
}
|
||||
}, ModalityState.any());
|
||||
}
|
||||
if (myAddedSdk != null) {
|
||||
if (item != null) {
|
||||
myProjectSdksModel.addSdk(item);
|
||||
myProjectSdksModel.apply(null, true);
|
||||
mySdkCombo.setSelectedItem(item);
|
||||
}
|
||||
else if (myAddedSdk != null) {
|
||||
myProjectSdksModel.apply(null, true);
|
||||
}
|
||||
|
||||
final Sdk prevSdk = ProjectRootManager.getInstance(myProject).getProjectSdk();
|
||||
final Sdk selectedSdk = setSdk(item);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user