Buggy code:
@ Transient private PhotoPack cachedPhotosPack20 ; private Date dateOfLatestLogin ; private String uploadPermKey ; @ Override public String toString ( ) { } public UserProfile ( ) { } public UserProfile ( UserProfile copied ) { } public void copyFrom ( UserProfile copied ) { } public UserProfile ( String userName , String password , String firstName , String email , String gender , String lastName , String location , String locationLat , String locationLong , String website , String personalObjective , String personalDescription , String personalPhilosophy , String personalAssets ) { } public boolean isComplete ( ) { } public List < Photo > getPhotosPack20 ( ) { } public boolean isPhotoPackFullAlready ( ) { } public boolean isPhotoPackEmpty ( ) { } public Photo getPhoto ( int photoIdx ) { } public void generateCvLink ( Date cvExpirationDate ) { } public boolean hasCv ( ) { } public String getPhotoS3RootFolder ( ) { } public String getThumbsS3RootFolder ( ) { } public void generatephotoLinks ( Date expirationdate ) { } public Photo removePhoto ( int photoIndex ) { } public boolean hasMoreThanOnePhoto ( ) { } public Photo getMainPhoto ( ) { } public String getNumberOfWrittenReferences ( ) { } public String getNumberOfReceivedReferences ( ) { } public void addWrittenReference ( UserReference ref ) { } public void removeWrittenReference ( String removedReferenceId ) { } public UserReference retrieveWrittenReference ( String referenceId ) { } public List < UserReference > findWrittenReferencesToUserName ( String toUserName ) { } public void addReceivedReference ( UserReference ref ) { } public void removeReceivedReference ( String removedReferenceId ) { } public UserReference retrieveReceivedReference ( String referenceId ) { } public List < UserReference > findReceivedReferencesFromUserName ( String fromUserName ) { } public Participation retrieveParticipation ( Participation part ) { } public boolean hasAtLeastOnePendingReceivedContactsRequest ( ) { } public boolean hasAtLeastOnePendingSentContactsRequest ( ) { } public boolean hasAtLeastOneContact ( ) { } public boolean hasUserInContacts ( String otherUsername ) { } public Contact retrieveConfirmedContactWith ( String otherUsername ) { } public boolean hasReceivedAContactRequestFrom ( String username ) { } public Contact retrieveReceivedContactRequestFrom ( String username ) { } public boolean hasSentAContactRequestTo ( String otherUsername ) { } public Contact retrieveSentContactRequestTo ( String otherUsername ) { } public void markPendingRequestedRelationshipAsApproved ( String otherUsername ) { } public void markPendingReceivedRelationshipAsApproved ( String otherUsername ) { } protected void markPendingRelationshipAsApproved ( String otherUsername , List < Contact > pendingContactList ) { } public void removePendingSentRelationship ( String otherUsername ) { } public void removedPendingReceivedRelationship ( String otherUsername ) { } public void removeContact ( String otherUsername ) { } protected void removeRelationship ( String otherUsername , List < Contact > pendingContactList ) { } public Contact findContactOrContactRequestWith ( String otherUsername ) { } public Contact findPendingReceivedContactRequestWith ( String otherUsername ) { } public Contact findPendingSentContactRequestWith ( String otherUsername ) { } public Contact findContactWith ( String otherUsername ) { } protected Contact findPendingContactRequestWith ( String otherUsername , List < Contact > contactList ) { } public boolean isAgeVisibleTo ( String userId ) { } public boolean isFirstNameVisibleTo ( String userId ) { } public boolean isLastNameVisibleTo ( String userId ) { } public boolean isCvVisibleTo ( String userId ) { } public boolean isPhotoGalleryVisibleTo ( String userId ) { } protected boolean allows ( VISIBILITY visibility , String accessingUserId ) { } public PersonalData getPdata ( ) { } public void setPdata ( PersonalData pdata ) { } public Date getDateOfLatestLogin ( ) { } public List < Photo > getPhotos ( ) { } public void setPhotos ( List < Photo > photos ) { } public List < UserReference > getWrittenReferences ( ) { } public void setWrittenReferences ( List < UserReference > writtenReferences ) { } public List < UserReference > getReceivedReferences ( ) { } public void setReceivedReferences ( List < UserReference > receivedReferences ) { } public String getUploadPermKey ( ) { } public void setUploadPermKey ( String uploadPermKey ) { } public S3Link getCvLink ( ) { } public void setCvLink ( S3Link cvLink ) { } public void setDateOfLatestLogin ( Date time ) { } public String getUsername ( ) { } public void setUsername ( String userName ) { } public List < Contact > getContacts ( ) { } public List < String > getContactIds ( ) { } public void setContacts ( List < Contact > contacts ) { } public List < Contact > getPendingSentContactRequests ( ) { } public List < String > getPendingSentContactRequestIds ( ) { } public void setPendingSentContactRequests ( List < Contact > pendingSentContactRequests ) { } public List < Contact > getPendingReceivedContactRequests ( ) { } public List < String > getPendingReceivedContactRequestIds ( ) { } public void setPendingReceivedContactRequests ( List < Contact > pendingReceivedContactRequests ) { } public PrivacySettings getPrivacySettings ( ) { } public void setPrivacySettings ( PrivacySettings privacySettings ) { } public List < OwnerAwareContact > getMyActiveContacts ( ) { } public int getNumberOfActiveContacts ( ) { } public List < Participation > getProjects ( ) { } public void setProjects ( List < Participation > project ) { } public List < Participation > getConfirmedProjects ( ) { } public List < Participation > getApplications ( ) { } public boolean isMemberOfOrHasAppliedTo ( String projectsId ) { } public boolean isOwnerOfAtLeastOneProject ( ) { if ( ( getConfirmedProjects ( ) ) == null ) { return false ; } for ( Participation participation : getConfirmedProjects ( ) ) { <START_BUG> if ( ( participation . getRole ( ) ) == ( ROLE . admin ) ) { <END_BUG> return true ; } } return false ; } public Long getNumberOfConfirmedProjects ( ) { } public Long getNumberOfApplications ( ) { } public Participation getApplication ( String projectId ) { } public Participation getProject ( String projectId ) { } public int getMainPhotoIndex ( ) { } public void setMainPhotoIndex ( int mainPhotoIndex ) { } No newline ; at end ; of file ; }

Fix:
if ( ( participation . getRole ( ) ) == ( ROLE . initiator ) ) {