Buggy code:
public class ScarabRequestTool extends RecyclableSupport implements ScarabRequestScope { private RunData data ; private ScarabUser user = null ; private Issue issue = null ; private Attribute attribute = null ; private Attachment attachment = null ; private Depend depend = null ; private Query query = null ; private IssueTemplateInfo templateInfo = null ; private IssueType issueType = null ; private AttributeGroup group = null ; private ModuleEntity currentModule = null ; private IssueType currentIssueType = null ; private Issue reportingIssue = null ; private String currentQuery = null ; private ModuleEntity module = null ; private AttributeOption attributeOption = null ; private ROptionOption roo = null ; private ParentChildAttributeOption pcao = null ; private List issueList ; private Report reportGenerator = null ; private int nbrPages = 0 ; private int prevPage = 0 ; private int nextPage = 0 ; public void init ( Object data ) { } public void refresh ( ) { } public ScarabRequestTool ( ) { } public void setAttribute ( Attribute attribute ) { } public void setDepend ( Depend depend ) { } public void setQuery ( Query query ) { } private IntakeTool getIntakeTool ( ) { } public ROptionOption getROptionOption ( ) { } public void setROptionOption ( ROptionOption roo ) { } public void setIssueTemplateInfo ( IssueTemplateInfo templateInfo ) { } public void setIssueType ( IssueType issuetype ) { } public ParentChildAttributeOption getParentChildAttributeOption ( ) { } public void setParentChildAttributeOption ( ParentChildAttributeOption roo ) { } public void setAttributeOption ( AttributeOption option ) { } public AttributeOption getAttributeOption ( ) throws Exception { } public void setUser ( ScarabUser user ) { } public ScarabUser getUser ( ) { } public ScarabUser getUser ( Object id ) throws Exception { } public ScarabUser getUserByUserName ( String username ) throws Exception { } public Attribute getAttribute ( ) throws Exception { } public Query getQuery ( ) throws Exception { } public IssueTemplateInfo getIssueTemplateInfo ( ) throws Exception { } public Issue getIssueTemplate ( ) throws Exception { } public Issue getIssueTemplate ( String templateId ) throws Exception { } public Depend getDepend ( ) throws Exception { } public Attachment getAttachment ( ) throws Exception { } public AttributeGroup getAttributeGroup ( ) throws Exception { } public AttributeGroup getAttributeGroup ( String key ) { } public IssueType getIssueType ( String key ) { } public IssueType getIssueType ( ) throws Exception { } public RModuleAttribute getRModuleAttribute ( ) throws Exception { } public void setAttributeGroup ( AttributeGroup group ) { } public void setModule ( ModuleEntity module ) { } public ModuleEntity getModule ( ) throws Exception { } public ModuleEntity getModule ( String key ) { } public ModuleEntity getCurrentModule ( ) { } public IssueType getCurrentIssueType ( ) throws Exception { if ( ( currentIssueType ) == null ) { <START_BUG> currentIssueType = getIssueType ( data . getParameters ( ) . getString ( CURRENT_ISSUE_TYPE ) ) ; <END_BUG> } return currentIssueType ; } public Issue getReportingIssue ( ) throws Exception { } private void getNewReportingIssue ( ) throws Exception { } public void setReportingIssue ( Issue issue ) { } public void setCurrentModule ( ModuleEntity me ) { } public void setCurrentIssueType ( IssueType issueType ) { } public void setIssue ( Issue issue ) { } public Issue getIssue ( ) throws Exception { } public Issue getIssueByPk ( String key ) { } public Issue getIssue ( String id ) throws Exception { } public List getIssues ( ) throws Exception { } public List getScopes ( ) throws Exception { } public List getFrequencies ( ) throws Exception { } public Intake getConditionalIntake ( String parameter ) throws Exception { } public IssueSearch getSearch ( ) throws Exception { } public Intake parseQuery ( String query ) throws Exception { } public List getCurrentSearchResults ( ) throws Exception { } public String convertPath ( String path ) throws Exception { } public Report getReport ( ) throws Exception { } public void setReport ( Report report ) { } private static String getReportQueryString ( ValueParser params ) { } public List getUserSearchResults ( ) throws Exception { } public List getPaginatedList ( List fullList , int pgNbr , int nbrItemsPerPage ) { } public List getIssueList ( ) throws Exception { } public void setIssueList ( List v ) { } public int getNbrPages ( ) { } public int getNextPage ( ) { } public int getPrevPage ( ) { } public DateFormat getDateFormat ( ) { } public boolean hasPermission ( String permission ) { } public boolean hasPermission ( String permission , ModuleEntity module ) { } public void dispose ( ) { } }

Fix:
currentIssueType = getIssueType ( data . getParameters ( ) . getString ( CURRENT_ISSUE_TYPE , "1" ) ) ;