Buggy code:
public String getSearchWords ( ) { } public void setSearchWords ( String v ) { } public NumberKey [ ] getTextScope ( ) throws Exception { } private void setTextScopeToAll ( ) throws Exception { } public void setTextScope ( NumberKey [ ] v ) { } public String getMinId ( ) { } public void setMinId ( String v ) { } public String getMaxId ( ) { } public void setMaxId ( String v ) { } public String getMinDate ( ) { } public void setMinDate ( String v ) { } public String getMaxDate ( ) { } public void setMaxDate ( String v ) { } public int getMinVotes ( ) { } public void setMinVotes ( int v ) { } public String [ ] getCreatedByUserNames ( ) { } public void setCreatedByUserNames ( String [ ] v ) { } public int getResultsPerPage ( ) { } public void setResultsPerPage ( int v ) { } public NumberKey getStateChangeAttributeId ( ) { } public void setStateChangeAttributeId ( NumberKey v ) { } public NumberKey getStateChangeFromOptionId ( ) { } public void setStateChangeFromOptionId ( NumberKey v ) { } public NumberKey getStateChangeToOptionId ( ) { } public void setStateChangeToOptionId ( NumberKey v ) { } public String getStateChangeFromDate ( ) { } public void setStateChangeFromDate ( String v ) { } public String getStateChangeToDate ( ) { } public void setStateChangeToDate ( String v ) { } public NumberKey getInitialSortAttributeId ( ) { } public void setInitialSortAttributeId ( NumberKey v ) { } public String getInitialSortPolarity ( ) { } public void setInitialSortPolarity ( String v ) { } public NumberKey getALL_TEXT ( ) { } public List getQuickSearchTextAttributeValues ( ) throws Exception { } public List getTextAttributeValues ( ) throws Exception { } private List getTextAttributeValues ( boolean quickSearchOnly ) throws Exception { } public List getQuickSearchOptionAttributeValues ( ) throws Exception { } public List getOptionAttributeValues ( ) throws Exception { } private List getOptionAttributeValues ( boolean quickSearchOnly ) throws Exception { } private void removeUnsetValues ( List attValues ) { } private void addMinimumVotes ( Criteria crit ) throws ScarabException { } private void addIssueIdRange ( Criteria crit ) throws Exception , ScarabException { if ( ( ( ( minId ) != null ) && ( ( minId . length ( ) ) != 0 ) ) || ( ( ( maxId ) != null ) && ( ( maxId . length ( ) ) != 0 ) ) ) { Issue . FederatedId minFid = null ; Issue . FederatedId maxFid = null ; if ( ( ( minId ) == null ) || ( ( minId . length ( ) ) == 0 ) ) { maxFid = new Issue . FederatedId ( maxId ) ; crit . add ( ID_DOMAIN , maxFid . getDomain ( ) ) ; crit . add ( ID_PREFIX , maxFid . getPrefix ( ) ) ; crit . add ( ID_COUNT , maxFid . getCount ( ) , LESS_EQUAL ) ; } else if ( ( ( maxId ) == null ) || ( ( maxId . length ( ) ) == 0 ) ) { minFid = new Issue . FederatedId ( minId ) ; crit . add ( ID_DOMAIN , minFid . getDomain ( ) ) ; crit . add ( ID_PREFIX , minFid . getPrefix ( ) ) ; crit . add ( ID_COUNT , minFid . getCount ( ) , GREATER_EQUAL ) ; } else { minFid = new Issue . FederatedId ( minId ) ; maxFid = new Issue . FederatedId ( maxId ) ; if ( ( minFid . getPrefix ( ) ) == null ) { <START_BUG> minFid . setPrefix ( getScarabModule ( ) . getCode ( ) ) ; <END_BUG> } if ( ( maxFid . getPrefix ( ) ) == null ) { maxFid . setPrefix ( minFid . getPrefix ( ) ) ; } if ( ( ( ( minFid . getCount ( ) ) <= ( maxFid . getCount ( ) ) ) && ( minFid . getPrefix ( ) . equals ( maxFid . getPrefix ( ) ) ) ) && ( StringUtils . equals ( minFid . getDomain ( ) , maxFid . getDomain ( ) ) ) ) { Criteria . Criterion c1 = crit . getNewCriterion ( ID_COUNT , new Integer ( minFid . getCount ( ) ) , GREATER_EQUAL ) ; c1 . and ( crit . getNewCriterion ( ID_COUNT , new Integer ( maxFid . getCount ( ) ) , LESS_EQUAL ) ) ; crit . add ( c1 ) ; crit . add ( ID_DOMAIN , minFid . getDomain ( ) ) ; crit . add ( ID_PREFIX , minFid . getPrefix ( ) ) ; } else { throw new ScarabException ( ( ( ( "Incompatible<seq2seq4repair_space>issue<seq2seq4repair_space>Ids:<seq2seq4repair_space>" + ( minId ) ) + "<seq2seq4repair_space>and<seq2seq4repair_space>" ) + ( maxId ) ) ) ; } } } } private void addCreatedDateRange ( Criteria crit ) throws ScarabException { } private Date parseDate ( String dateString , boolean addTwentyFourHours ) { } private void addDateRange ( String column , Date minUtilDate , Date maxUtilDate , Criteria crit ) throws ScarabException { } private void addSelectedAttributes ( Criteria crit , List attValues ) throws Exception { } private Criterion buildOptionCriterion ( AttributeValue aval ) throws Exception { } private Criterion buildUserCriterion ( AttributeValue aval ) throws Exception { } private void addCreatedByUserIds ( Criteria crit ) throws Exception { } private NumberKey [ ] addTextMatches ( Criteria crit , List attValues ) throws Exception { } private void addStateChangeQuery ( Criteria crit ) throws Exception { } private void addInitialSortCriteria ( Criteria crit ) throws Exception { } public List getMatchingIssues ( ) throws Exception { } public List getMatchingIssues ( int limitResults ) throws Exception { } private List sortByIssueIdList ( NumberKey [ ] ids , List issues , int limitResults ) { } }

Fix:
minFid . setPrefix ( getModule ( ) . getCode ( ) ) ;