Program: 188213
Project: 188213
Buggy source:
@Override protected void configureDisplay(CellTable<IndexedRisk> display){
  nameColumn=new TextColumn<IndexedRisk>(){
    @Override public String getValue(    IndexedRisk risk){
      return risk != null ? risk.getName() : null;
    }
  }
;
  identifiedOnColumn=new Column<IndexedRisk,Date>(new DateCell(DateTimeFormat.getFormat(PredefinedFormat.DATE_LONG))){
    @Override public Date getValue(    IndexedRisk risk){
      return risk != null ? risk.getIdentifiedOn() : null;
    }
  }
;
  categoryColumn=new TextColumn<IndexedRisk>(){
    @Override public String getValue(    IndexedRisk risk){
      return risk != null ? risk.getCategory() : null;
    }
  }
;
  ownerColumn=new TextColumn<IndexedRisk>(){
    @Override public String getValue(    IndexedRisk risk){
      return risk != null ? risk.getMitigationOwner() : null;
    }
  }
;
  severityColumn=new Column<IndexedRisk,SafeHtml>(new SafeHtmlCell()){
    @Override public SafeHtml getValue(    IndexedRisk risk){
      SafeHtml ret=null;
      if (risk != null) {
        ret=HtmlSnippetUtils.getSeverityDefinition(risk.getCurrentSeverityLevel());
      }
      return ret;
    }
  }
;
  incidenceCounterColumn=new TextColumn<IndexedRisk>(){
    @Override public String getValue(    IndexedRisk risk){
      return Integer.toString(risk.getIncidencesCount());
    }
  }
;
  notMitigatedIncidenceCounterColumn=new TextColumn<IndexedRisk>(){
    @Override public String getValue(    IndexedRisk risk){
      return Integer.toString(risk.getUnmitigatedIncidencesCount());
    }
  }
;
  nameColumn.setSortable(true);
  identifiedOnColumn.setSortable(true);
  categoryColumn.setSortable(true);
  ownerColumn.setSortable(true);
  severityColumn.setSortable(true);
  incidenceCounterColumn.setSortable(true);
  notMitigatedIncidenceCounterColumn.setSortable(true);
  addColumn(nameColumn,messages.riskName(),false,false);
  addColumn(categoryColumn,messages.riskCategory(),false,false);
  addColumn(ownerColumn,messages.riskMitigationOwner(),false,false);
  addColumn(identifiedOnColumn,messages.riskIdentifiedOn(),false,false,8);
  addColumn(severityColumn,messages.riskPostMitigationSeverity(),false,false,7);
  addColumn(incidenceCounterColumn,messages.riskIncidences(),false,false,6);
  addColumn(notMitigatedIncidenceCounterColumn,messages.riskNotMitigatedIncidences(),false,false,6);
  display.getColumnSortList().push(new ColumnSortInfo(severityColumn,false));
}

Fixed version (ground truth):
@Override protected void configureDisplay(CellTable<IndexedRisk> display){
  nameColumn=new TextColumn<IndexedRisk>(){
    @Override public String getValue(    IndexedRisk risk){
      return risk != null ? risk.getName() : null;
    }
  }
;
  identifiedOnColumn=new Column<IndexedRisk,Date>(new DateCell(DateTimeFormat.getFormat(RodaConstants.SIMPLE_DATE_FORMATTER))){
    @Override public Date getValue(    IndexedRisk risk){
      return risk != null ? risk.getIdentifiedOn() : null;
    }
  }
;
  categoryColumn=new TextColumn<IndexedRisk>(){
    @Override public String getValue(    IndexedRisk risk){
      return risk != null ? risk.getCategory() : null;
    }
  }
;
  ownerColumn=new TextColumn<IndexedRisk>(){
    @Override public String getValue(    IndexedRisk risk){
      return risk != null ? risk.getMitigationOwner() : null;
    }
  }
;
  severityColumn=new Column<IndexedRisk,SafeHtml>(new SafeHtmlCell()){
    @Override public SafeHtml getValue(    IndexedRisk risk){
      SafeHtml ret=null;
      if (risk != null) {
        ret=HtmlSnippetUtils.getSeverityDefinition(risk.getCurrentSeverityLevel());
      }
      return ret;
    }
  }
;
  incidenceCounterColumn=new TextColumn<IndexedRisk>(){
    @Override public String getValue(    IndexedRisk risk){
      return Integer.toString(risk.getIncidencesCount());
    }
  }
;
  notMitigatedIncidenceCounterColumn=new TextColumn<IndexedRisk>(){
    @Override public String getValue(    IndexedRisk risk){
      return Integer.toString(risk.getUnmitigatedIncidencesCount());
    }
  }
;
  nameColumn.setSortable(true);
  identifiedOnColumn.setSortable(true);
  categoryColumn.setSortable(true);
  ownerColumn.setSortable(true);
  severityColumn.setSortable(true);
  incidenceCounterColumn.setSortable(true);
  notMitigatedIncidenceCounterColumn.setSortable(true);
  addColumn(nameColumn,messages.riskName(),false,false);
  addColumn(categoryColumn,messages.riskCategory(),false,false);
  addColumn(ownerColumn,messages.riskMitigationOwner(),false,false);
  addColumn(identifiedOnColumn,messages.riskIdentifiedOn(),false,false,8);
  addColumn(severityColumn,messages.riskPostMitigationSeverity(),false,false,7);
  addColumn(incidenceCounterColumn,messages.riskIncidences(),false,false,6);
  addColumn(notMitigatedIncidenceCounterColumn,messages.riskNotMitigatedIncidences(),false,false,6);
  display.getColumnSortList().push(new ColumnSortInfo(severityColumn,false));
}