This commit is contained in:
anna
2011-04-12 14:13:51 +02:00
parent c37ef2dd81
commit 640ef4161c
@@ -174,7 +174,7 @@ class InplaceIntroduceParameterPopup extends IntroduceParameterSettingsUI {
@Override
protected int getReplaceFieldsWithGetters() {
return (Integer)myReplaceFieldsCb.getSelectedItem();
return myReplaceFieldsCb!= null ? (Integer)myReplaceFieldsCb.getSelectedItem() : IntroduceParameterRefactoring.REPLACE_FIELDS_WITH_GETTERS_INACCESSIBLE;
}
void inplaceIntroduceParameter() {