Buggy code:
public class JdomActivityDescriptionReader implements ActivityDescriptionReader { public static final String ACTIVITY_VALUE_TRUE = "true" ; public static final String ACTIVITY_VALUE_FALSE = "false" ; public static final String ACTIVITY_ELEMENT_NAME_DEPENDENCIES = "dependencies" ; public static final String ACTIVITY_ELEMENT_NAME_DEPENDENCY_ITEM = "dependency" ; public static final String ACTIVITY_ATTRIBUTE_NAME_DEPENDENCY_ITEM_IDENTIFYING_NAME = "identifyingName" ; public static final String ACTIVITY_ATTRIBUTE_NAME_DEPENDENCY_ITEM_IDENTIFYING_NAME_DEPRECATED = "name" ; public static final String ACTIVITY_ATTRIBUTE_NAME_DEPENDENCY_ITEM_VERSION = "version" ; public static final String ACTIVITY_ATTRIBUTE_NAME_DEPENDENCY_ITEM_VERSION_MINIMUM = "minimumVersion" ; public static final String ACTIVITY_ATTRIBUTE_NAME_DEPENDENCY_ITEM_VERSION_MAXIMUM = "maximumVersion" ; public static final String ACTIVITY_ATTRIBUTE_NAME_DEPENDENCY_ITEM_REQUIRED = "required" ; public static final String ACTIVITY_ATTRIBUTE_VALUE_DEFAULT_DEPENDENCY_ITEM_REQUIRED = JdomActivityDescriptionReader . ACTIVITY_VALUE_TRUE ; @ Override public ActivityDescription readDescription ( InputStream activityDescriptionStream ) { } private void getMainData ( ActivityDescription adescription , Element rootElement , List < String > errors ) { } private void getMetadata ( ActivityDescription adescription , Element rootElement , List < String > errors ) { } private void getDependencies ( ActivityDescription adescription , Element rootElement , List < String > errors ) { } private ActivityDependency getDependency ( Element dependencyElement , List < String > errors ) { String identifyingName = dependencyElement . getAttributeValue ( JdomActivityDescriptionReader . ACTIVITY_ATTRIBUTE_NAME_DEPENDENCY_ITEM_IDENTIFYING_NAME ) ; if ( identifyingName == null ) { identifyingName = dependencyElement . getAttributeValue ( JdomActivityDescriptionReader . ACTIVITY_ATTRIBUTE_NAME_DEPENDENCY_ITEM_IDENTIFYING_NAME_DEPRECATED ) ; if ( identifyingName == null ) { errors . add ( "Dependency<seq2seq4repair_space>has<seq2seq4repair_space>no<seq2seq4repair_space>name" ) ; return null ; } } VersionRange version = null ; String versionStr = dependencyElement . getAttributeValue ( JdomActivityDescriptionReader . ACTIVITY_ATTRIBUTE_NAME_DEPENDENCY_ITEM_VERSION ) ; if ( versionStr != null ) { version = VersionRange . parseVersionRange ( versionStr ) ; } else { String minimumVersionStr = dependencyElement . getAttributeValue ( JdomActivityDescriptionReader . ACTIVITY_ATTRIBUTE_NAME_DEPENDENCY_ITEM_VERSION_MINIMUM ) ; String maximumVersionStr = dependencyElement . getAttributeValue ( JdomActivityDescriptionReader . ACTIVITY_ATTRIBUTE_NAME_DEPENDENCY_ITEM_VERSION_MAXIMUM ) ; if ( minimumVersionStr != null ) { if ( maximumVersionStr == null ) { maximumVersionStr = minimumVersionStr ; } } else if ( maximumVersionStr != null ) { minimumVersionStr = maximumVersionStr ; } else { errors . add ( "Dependency<seq2seq4repair_space>has<seq2seq4repair_space>no<seq2seq4repair_space>version<seq2seq4repair_space>constraints" ) ; return null ; } <START_BUG> version = VersionRange . parseVersionRange ( minimumVersionStr , minimumVersionStr ) ; <END_BUG> } String requiredString = dependencyElement . getAttributeValue ( JdomActivityDescriptionReader . ACTIVITY_ATTRIBUTE_VALUE_DEFAULT_DEPENDENCY_ITEM_REQUIRED , JdomActivityDescriptionReader . ACTIVITY_ATTRIBUTE_VALUE_DEFAULT_DEPENDENCY_ITEM_REQUIRED ) ; ActivityDependency dependency = new SimpleActivityDependency ( ) ; dependency . setIdentifyingName ( identifyingName ) ; dependency . setMinimumVersion ( version . getMinimum ( ) . toString ( ) ) ; dependency . setMaximumVersion ( version . getMaximum ( ) . toString ( ) ) ; dependency . setRequired ( JdomActivityDescriptionReader . ACTIVITY_VALUE_TRUE . equals ( requiredString ) ) ; return dependency ; } }

Fix:
version = VersionRange . parseVersionRange ( minimumVersionStr , maximumVersionStr ) ;