Program: 188211
Project: 188211
Buggy source:
@Override protected void configureDisplay(CellTable<IndexedRepresentation> display){
  statesColumn=new TextColumn<IndexedRepresentation>(){
    @Override public String getValue(    IndexedRepresentation rep){
      List<String> translatedStates=new ArrayList<>();
      for (      String state : rep.getRepresentationStates()) {
        translatedStates.add(messages.statusLabel(state));
      }
      return StringUtils.prettyPrint(translatedStates);
    }
  }
;
  typeColumn=new Column<IndexedRepresentation,SafeHtml>(new SafeHtmlCell()){
    @Override public SafeHtml getValue(    IndexedRepresentation rep){
      SafeHtml ret;
      if (rep == null) {
        LOGGER.error("String_Node_Str");
        ret=null;
      }
 else {
        ret=DescriptionLevelUtils.getRepresentationTypeIcon(rep.getType(),true);
      }
      return ret;
    }
  }
;
  sizeInBytesColumn=new TextColumn<IndexedRepresentation>(){
    @Override public String getValue(    IndexedRepresentation rep){
      return rep != null ? Humanize.readableFileSize(rep.getSizeInBytes()) : null;
    }
  }
;
  numberOfDataFilesColumn=new TextColumn<IndexedRepresentation>(){
    @Override public String getValue(    IndexedRepresentation rep){
      return rep != null ? messages.numberOfFiles(rep.getNumberOfDataFiles(),rep.getNumberOfDataFolders()) : null;
    }
  }
;
  createdOnColumn=new Column<IndexedRepresentation,Date>(new DateCell(DateTimeFormat.getFormat(PredefinedFormat.DATE_TIME_MEDIUM))){
    @Override public Date getValue(    IndexedRepresentation representation){
      return representation != null ? representation.getCreatedOn() : null;
    }
  }
;
  updatedOnColumn=new Column<IndexedRepresentation,Date>(new DateCell(DateTimeFormat.getFormat(PredefinedFormat.DATE_TIME_MEDIUM))){
    @Override public Date getValue(    IndexedRepresentation representation){
      return representation != null ? representation.getUpdatedOn() : null;
    }
  }
;
  statesColumn.setSortable(true);
  typeColumn.setSortable(true);
  sizeInBytesColumn.setSortable(true);
  numberOfDataFilesColumn.setSortable(true);
  createdOnColumn.setSortable(true);
  updatedOnColumn.setSortable(true);
  display.addColumn(typeColumn,messages.representationType());
  display.addColumn(numberOfDataFilesColumn,messages.representationFiles());
  display.addColumn(sizeInBytesColumn,messages.representationSize());
  display.addColumn(statesColumn,messages.representationStatus());
  display.addColumn(createdOnColumn,messages.objectCreatedDate());
  display.addColumn(updatedOnColumn,messages.objectLastModified());
  Label emptyInfo=new Label(messages.noItemsToDisplay());
  display.setEmptyTableWidget(emptyInfo);
  statesColumn.setCellStyleNames("String_Node_Str");
  typeColumn.setCellStyleNames("String_Node_Str");
  sizeInBytesColumn.setCellStyleNames("String_Node_Str");
  numberOfDataFilesColumn.setCellStyleNames("String_Node_Str");
  createdOnColumn.setCellStyleNames("String_Node_Str");
  updatedOnColumn.setCellStyleNames("String_Node_Str");
  display.getColumnSortList().push(new ColumnSortInfo(typeColumn,true));
  addStyleName("String_Node_Str");
  emptyInfo.addStyleName("String_Node_Str");
}

Fixed version (ground truth):
@Override protected void configureDisplay(CellTable<IndexedRepresentation> display){
  statesColumn=new TextColumn<IndexedRepresentation>(){
    @Override public String getValue(    IndexedRepresentation rep){
      List<String> translatedStates=new ArrayList<>();
      for (      String state : rep.getRepresentationStates()) {
        translatedStates.add(messages.statusLabel(state));
      }
      return StringUtils.prettyPrint(translatedStates);
    }
  }
;
  typeColumn=new Column<IndexedRepresentation,SafeHtml>(new SafeHtmlCell()){
    @Override public SafeHtml getValue(    IndexedRepresentation rep){
      SafeHtml ret;
      if (rep == null) {
        LOGGER.error("String_Node_Str");
        ret=null;
      }
 else {
        ret=DescriptionLevelUtils.getRepresentationTypeIcon(rep.getType(),true);
      }
      return ret;
    }
  }
;
  sizeInBytesColumn=new TextColumn<IndexedRepresentation>(){
    @Override public String getValue(    IndexedRepresentation rep){
      return rep != null ? Humanize.readableFileSize(rep.getSizeInBytes()) : null;
    }
  }
;
  numberOfDataFilesColumn=new TextColumn<IndexedRepresentation>(){
    @Override public String getValue(    IndexedRepresentation rep){
      return rep != null ? messages.numberOfFiles(rep.getNumberOfDataFiles(),rep.getNumberOfDataFolders()) : null;
    }
  }
;
  createdOnColumn=new Column<IndexedRepresentation,Date>(new DateCell(DateTimeFormat.getFormat(RodaConstants.DEFAULT_DATETIME_FORMAT))){
    @Override public Date getValue(    IndexedRepresentation representation){
      return representation != null ? representation.getCreatedOn() : null;
    }
  }
;
  updatedOnColumn=new Column<IndexedRepresentation,Date>(new DateCell(DateTimeFormat.getFormat(RodaConstants.DEFAULT_DATETIME_FORMAT))){
    @Override public Date getValue(    IndexedRepresentation representation){
      return representation != null ? representation.getUpdatedOn() : null;
    }
  }
;
  statesColumn.setSortable(true);
  typeColumn.setSortable(true);
  sizeInBytesColumn.setSortable(true);
  numberOfDataFilesColumn.setSortable(true);
  createdOnColumn.setSortable(true);
  updatedOnColumn.setSortable(true);
  display.addColumn(typeColumn,messages.representationType());
  display.addColumn(numberOfDataFilesColumn,messages.representationFiles());
  display.addColumn(sizeInBytesColumn,messages.representationSize());
  display.addColumn(statesColumn,messages.representationStatus());
  display.addColumn(createdOnColumn,messages.objectCreatedDate());
  display.addColumn(updatedOnColumn,messages.objectLastModified());
  Label emptyInfo=new Label(messages.noItemsToDisplay());
  display.setEmptyTableWidget(emptyInfo);
  statesColumn.setCellStyleNames("String_Node_Str");
  typeColumn.setCellStyleNames("String_Node_Str");
  sizeInBytesColumn.setCellStyleNames("String_Node_Str");
  numberOfDataFilesColumn.setCellStyleNames("String_Node_Str");
  createdOnColumn.setCellStyleNames("String_Node_Str");
  updatedOnColumn.setCellStyleNames("String_Node_Str");
  display.getColumnSortList().push(new ColumnSortInfo(typeColumn,true));
  addStyleName("String_Node_Str");
  emptyInfo.addStyleName("String_Node_Str");
}