Buggy code:
private void hideorShowEditButtonForAllCommentWidgets ( Boolean boolFlag ) { } public List < Map < String , String > > getStandardsMap ( List < StandardFo > standareds ) { } @ Override public void setInSlot ( Object slot , Widget content ) { } public void setLabelAndIds ( ) { } @ UiHandler ( "collectionThumbnail" ) public void thumbnailErrorImage ( ErrorEvent event ) { } @ UiHandler ( "nextCollectionThumbnail" ) public void nextThumbnailErrorImage ( ErrorEvent event ) { } public void setReplyLink ( ) { } private class ReplayCollectionEvent implements ClickHandler { @ Override public void onClick ( ClickEvent event ) { } } public String getReplayLink ( ) { } public void setCollectionImage ( String thumbnailUrl ) { } @ UiHandler ( "customizeCollectionBtn" ) public void oncustomizeCollectionBtnClicked ( ClickEvent clickEvent ) { } @ UiHandler ( "shareCollectionBtn" ) public void onshareCollectionBtnClicked ( ClickEvent clickEvent ) { } public void resetMetadataFields ( ) { } @ Override public void setRelatedConceptsContent ( ArrayList < ConceptDo > conceptDoList , String coursePage , String subject , String lessonId , String libraryName ) { } @ Override public void isConceptsContainerVisible ( boolean isVisible ) { } public void setDataInsightsUrl ( ) { } public void setClasspageInsightsUrl ( String classpageId , String sessionId ) { } public void setDataInsightsSummaryUrl ( String sessionId ) { } public class DataInsightsIframe extends Composite { private Frame dataInsightsFrame = null ; private String insightsUrl = "" ; public DataInsightsIframe ( String insightsUrl ) { } public void onLoad ( ) { } } public void clearDashBoardIframe ( ) { } private void setCommentsText ( int commentIncrement ) { } @ Override public void setCommentsWidget ( CommentsDo commentsDo , String action ) { } private void deleteComment ( final String commentUid ) { } private void editComment ( String commentUid ) { } public void clearCommentContainer ( boolean isClear ) { } public void showSeeMoreButton ( ) { } @ UiHandler ( "seeMoreButton" ) public void clickOnSeeMoreButton ( ClickEvent event ) { } @ Override public void setCommentsData ( CommentsListDo commentDoList , CollectionDo collectionDo , boolean isToClearCommentContainer ) { } @ Override public void updateCommentChildView ( String commentUid , String action ) { } @ UiHandler ( "loginUrl" ) public void clickOnLoginUrl ( ClickEvent event ) { } @ UiHandler ( "signupUrl" ) public void clickOnSignupUrl ( ClickEvent event ) { } @ Override public void setPlayerLoginStatus ( boolean isLoggedIn ) { } @ UiHandler ( "postCommentBtn" ) public void clickOnPostCommentBtn ( ClickEvent event ) { } @ UiHandler ( "postCommentCancel" ) public void clickOnPostCommentCancel ( ClickEvent event ) { } private class OnCommentsFieldBlur implements BlurHandler { @ Override public void onBlur ( BlurEvent event ) { } } private class OnCommentsFieldClicked implements ClickHandler { @ Override public void onClick ( ClickEvent event ) { } } private class ValidateConfirmText implements KeyUpHandler { @ Override public void onKeyUp ( KeyUpEvent event ) { } } private void modifyEditControls ( boolean isCommentsFieldClicked ) { } @ Override public void displaySuccessMsg ( boolean isVisible ) { } public static void onClosingAndriodorIpaddiv ( ) { } @ Override public void setViewCount ( String viewCount ) { } @ Override public void setUserProfileName ( String gooruUid ) { } @ Override public void setLikesCount ( int likesCount ) { } @ Override public void displayAuthorDetails ( boolean isDisplayDetails ) { } @ Override public Anchor getFlagButton ( ) { } @ Override public void setTeacherInfo ( ClasspageItemDo classpageItemDo ) { } @ Override public void displaySpendTime ( Long hours , Long mins , Double secs ) { } public void displayTime ( String time , String timeText ) { } public void dispalyTime ( ) { } public void displayScore ( String collectionScore , String noOfQuestions ) { } @ Override public void displayScoreCount ( Integer collectionScore , Integer noOfQuestions ) { } public void displayNextCollectionDetails ( final CollectionDo collectionDo , final String subjectId , final String lessonId , final String libraryType ) { } public void hideNextCollectionContainer ( boolean hide ) { } public void getAverageReaction ( ) { } public void showAvgReaction ( String reactionType ) { } @ UiHandler ( "changeAssignmentStatusButton" ) public void clickOnStatusChangeBtn ( ClickEvent event ) { } public ResourceServiceAsync getResourceService ( ) { } public void setResourceService ( ResourceServiceAsync resourceService ) { } @ Override public void changeCommentsButton ( CollectionDo result ) { } @ Override public void setSessionsData ( ArrayList < CollectionSummaryUsersDataDo > result ) { } public void setSessionStartTime ( int selectedIndex ) { } @ Override public void setCollectionMetaDataByUserAndSession ( ArrayList < CollectionSummaryMetaDataDo > result ) { if ( ( result . size ( ) ) != 0 ) { collectionTitle . setText ( result . get ( 0 ) . getTitle ( ) ) ; collectionLastAccessed . setText ( AnalyticsUtil . getCreatedTime ( Long . toString ( result . get ( 0 ) . getLastModified ( ) ) ) ) ; <START_BUG> if ( ( result . get ( 0 ) . getThumbnail ( ) ) != null ) { <END_BUG> collectionImage . setUrl ( result . get ( 0 ) . getThumbnail ( ) ) ; } else { collectionImage . setUrl ( "images//analytics//default-collection-image.png" ) ; } collectionImage . addErrorHandler ( new ErrorHandler ( ) { @ Override public void onError ( ErrorEvent event ) { collectionImage . setUrl ( "images//analytics//default-collection-image.png" ) ; } } ) ; collectionResourcesCount . setText ( ( ( ( ( ( result . get ( 0 ) . getResourceCount ( ) ) - ( result . get ( 0 ) . getTotalQuestionCount ( ) ) ) + "<seq2seq4repair_space>Resources<seq2seq4repair_space>|<seq2seq4repair_space>" ) + ( result . get ( 0 ) . getTotalQuestionCount ( ) ) ) + "<seq2seq4repair_space>Questions" ) ) ; } } @ Override public void resetCollectionMetaData ( ) { } @ Override public HTMLPanel getLoadingImageLabel ( ) { } private String removeHtmlTags ( String html ) { } @ Override public void hidePanel ( ) { } @ Override public void resetData ( ) { } }

Fix:
if ( ( ( result . get ( 0 ) . getThumbnail ( ) ) != null ) && ( result . get ( 0 ) . getThumbnail ( ) . trim ( ) . equalsIgnoreCase ( "" ) ) ) {