diff --git a/src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java b/src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java index c0a7a926..af0f0575 100644 --- a/src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java +++ b/src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java @@ -151,7 +151,7 @@ public ExtendedChoiceParameterDefinition newInstance(StaplerRequest req, JSONObj type = formData.getString("type"); description = formData.getString("description"); quoteValue = formData.getBoolean("quoteValue"); - visibleItemCount = formData.getInt("visibleItemCount"); + visibleItemCount = formData.optInt("visibleItemCount"); multiSelectDelimiter = formData.getString("multiSelectDelimiter"); JSONObject propertySourceJSON = (JSONObject)formData.get("propertySource"); diff --git a/src/main/resources/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition/config.jelly b/src/main/resources/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition/config.jelly index cd5cc5c9..466ca4ae 100644 --- a/src/main/resources/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition/config.jelly +++ b/src/main/resources/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition/config.jelly @@ -90,7 +90,7 @@ - +