mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-23553 Don't set up validators on the remote path field until all panels are created
otherwise we might end up running checkValid() on not yet created components, hence these NPEs.
This commit is contained in:
+5
-1
@@ -177,6 +177,11 @@ public class ProjectSpecificSettingsStep extends ProjectSettingsStepBase impleme
|
||||
}, "Refreshing List of Packages, Please Wait", false, null);
|
||||
}
|
||||
});
|
||||
|
||||
if (myRemotePathField != null) {
|
||||
myRemotePathField.addTextChangeListener(this::checkValid);
|
||||
}
|
||||
|
||||
UiNotifyConnector.doWhenFirstShown(mySdkCombo, this::checkValid);
|
||||
}
|
||||
}
|
||||
@@ -348,7 +353,6 @@ public class ProjectSpecificSettingsStep extends ProjectSettingsStepBase impleme
|
||||
|
||||
mySdkCombo.addChangedListener(e -> configureMappingField(remoteInterpreterManager));
|
||||
panelToAddField.add(myRemotePathField.getMainPanel());
|
||||
myRemotePathField.addTextChangeListener(() -> checkValid());
|
||||
configureMappingField(remoteInterpreterManager);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user