Buggy code:
public class ContestWrapper { private static final String WHERE = "where" ; private static final String WHAT = "what" ; private static final String WHO = "who" ; private static final String HOW = "how" ; private static final String EMAIL_TEMPLATE_URL = "//web//guest//generic-advancing-email-template" ; private static final Map < Long , FocusArea > faCache = new HashMap < Long , FocusArea > ( ) ; private Map < String , List < OntologyTerm > > ontologySpaceCache = new HashMap < String , List < OntologyTerm > > ( ) ; private Map < String , String > ontologyJoinedNames = new HashMap < String , String > ( ) ; private List < ContestPhaseWrapper > phases ; private List < ContestPhaseWrapper > visiblePhases ; private ContestPhaseWrapper activePhase ; private List < ContestTeamRoleWrapper > contestTeamMembersByRole ; private Contest contest ; public ContestWrapper ( Contest contest ) { } public void persist ( ) throws SystemException { } public Class < ? > getModelClass ( ) { } public String getModelClassName ( ) { } public long getPrimaryKey ( ) { } public void setPrimaryKey ( long primaryKey ) { } public long getContestPK ( ) { } public void setContestPK ( long ContestPK ) { } public String getContestName ( ) { } public void setContestName ( String ContestName ) { } public String getContestShortName ( ) { } public void setContestShortName ( String ContestShortName ) { } public String getContestDescription ( ) { } public void setContestDescription ( String ContestDescription ) { } public String getContestModelDescription ( ) { } public void setContestModelDescription ( String ContestModelDescription ) { } public String getEmailTemplateUrl ( ) { } public void setEmailTemplateUrl ( String emailTemplateUrl ) { } public boolean getShowInTileView ( ) { } public boolean isShowInTileView ( ) { } public void setShowInTileView ( boolean showInTileView ) { } public boolean getShowInListView ( ) { } public boolean isShowInListView ( ) { } public void setShowInListView ( boolean showInListView ) { } public boolean getShowInOutlineView ( ) { Boolean contestShowInOutlineView = ( ( Boolean ) ( contest . getShow_in_outline_view ( ) ) ) ; if ( contestShowInOutlineView != null ) { return contest . getShow_in_outline_view ( ) ; } else { <START_BUG> contest . setShow_in_tile_view ( true ) ; <END_BUG> return true ; } } public boolean isShowInOutlineView ( ) { } public void setShowInOutlineView ( boolean showInOutlineView ) { } public void resetOriginalValues ( ) { } public String getContestPositionsDescription ( ) { } public void setContestPositionsDescription ( String ContestPositionsDescription ) { } public String getDefaultPlanDescription ( ) { } public void setDefaultPlanDescription ( String defaultPlanDescription ) { } public long getPlanTypeId ( ) { } public void setPlanTypeId ( long PlanTypeId ) { } public Date getCreated ( ) { } public long getCreatedTime ( ) { } public void setCreated ( Date created ) { } public Date getUpdated ( ) { } public void setUpdated ( Date updated ) { } public long getAuthorId ( ) { } public void setAuthorId ( long authorId ) { } public boolean getContestActive ( ) { } public boolean isContestActive ( ) { } public void setContestActive ( boolean contestActive ) { } public long getPlanTemplateId ( ) { } public void setPlanTemplateId ( long planTemplateId ) { } public long getFocusAreaId ( ) { } public void setFocusAreaId ( long focusAreaId ) { } public long getContestLogoId ( ) { } public void setContestLogoId ( long contestLogoId ) { } public boolean getFeatured ( ) { } public boolean isFeatured ( ) { } public void setFeatured ( boolean featured ) { } public boolean getPlansOpenByDefault ( ) { } public boolean isPlansOpenByDefault ( ) { } public void setPlansOpenByDefault ( boolean plansOpenByDefault ) { } public long getSponsorLogoId ( ) { } public void setSponsorLogoId ( long sponsorLogoId ) { } public String getSponsorText ( ) { } public void setSponsorText ( String sponsorText ) { } public String getSponsorLink ( ) { } public void setSponsorLink ( String sponsorLink ) { } public boolean getSponsorLinkAvailable ( ) { } public int getFlag ( ) { } public void setFlag ( int flag ) { } public String getFlagText ( ) { } public void setFlagText ( String flagText ) { } public String getFlagTooltip ( ) { } public void setFlagTooltip ( String flagTooltip ) { } public long getGroupId ( ) { } public void setGroupId ( long groupId ) { } public long getDiscussionGroupId ( ) { } public void setDiscussionGroupId ( long discussionGroupId ) { } public int getWeight ( ) { } public void setWeight ( int weight ) { } public String getResourcesUrl ( ) { } public void setResourcesUrl ( String resourcesUrl ) { } public long getProposalsCount ( ) throws PortalException , SystemException { } public long getCommentsCount ( ) throws PortalException , SystemException { } public long getTotalCommentsCount ( ) throws PortalException , SystemException { } public long getVotesCount ( ) throws PortalException , SystemException { } public ContestPhaseWrapper getLastPhase ( ) throws PortalException , SystemException { } public ContestPhaseWrapper getActivePhase ( ) throws PortalException , SystemException { } public List < OntologyTerm > getWho ( ) throws PortalException , SystemException { } public String getWhoName ( ) throws PortalException , SystemException { } public List < OntologyTerm > getWhat ( ) throws PortalException , SystemException { } public String getWhatName ( ) throws PortalException , SystemException { } public List < OntologyTerm > getWhere ( ) throws PortalException , SystemException { } public String getWhereName ( ) throws PortalException , SystemException { } public List < OntologyTerm > getHow ( ) throws PortalException , SystemException { } public String getHowName ( ) throws PortalException , SystemException { } public String getTermNameFromSpace ( String space ) throws PortalException , SystemException { } public boolean getShowSubContests ( ) { } public List < Contest > getSubContests ( ) throws Exception { }

Fix:
contest . setShow_in_outline_view ( true ) ;