Program: 188188
Project: 188188
Buggy source:
private void showActionSourceObjects(final SelectedItems<?> selected){
  if (selected != null) {
    selectedList.clear();
    if (selected instanceof SelectedItemsList) {
      List<String> ids=((SelectedItemsList<?>)selected).getIds();
      if (ids.isEmpty()) {
        Label noSourceLabel=new Label(messages.noItemsToDisplay());
        selectedListPanel.add(noSourceLabel);
      }
 else {
        Label filterLabel=new Label(SearchPreFilterUtils.getFilterParameterHTML(new OneOfManyFilterParameter(RodaConstants.INDEX_UUID,ids)).asString());
        selectedList.add(filterLabel);
      }
    }
 else     if (selected instanceof SelectedItemsFilter) {
      Filter filter=((SelectedItemsFilter<?>)selected).getFilter();
      HTML filterHTML=new HTML(SearchPreFilterUtils.getFilterHTML(filter,selected.getSelectedClass()));
      selectedList.add(filterHTML);
    }
 else     if (selected instanceof SelectedItemsAll || selected instanceof SelectedItemsNone) {
      Label objectLabel=new Label();
      objectLabel.addStyleName("String_Node_Str");
      if (StringUtils.isBlank(selected.getSelectedClass())) {
        objectLabel.setText(messages.noItemsToDisplay());
      }
 else       if (AIP.class.getName().equals(selected.getSelectedClass()) || IndexedAIP.class.getName().equals(selected.getSelectedClass())) {
        objectLabel.setText(messages.allIntellectualEntities());
      }
 else       if (Representation.class.getName().equals(selected.getSelectedClass()) || IndexedRepresentation.class.getName().equals(selected.getSelectedClass())) {
        objectLabel.setText(messages.allRepresentations());
      }
 else       if (File.class.getName().equals(selected.getSelectedClass()) || IndexedFile.class.getName().equals(selected.getSelectedClass())) {
        objectLabel.setText(messages.allFiles());
      }
 else {
        objectLabel.setText(messages.allOfAObject(selected.getSelectedClass()));
      }
      selectedList.add(objectLabel);
    }
 else {
      selectedListPanel.setVisible(false);
    }
  }
}

Fixed version (ground truth):
private void showActionSourceObjects(final SelectedItems<?> selected){
  if (selected != null) {
    selectedList.clear();
    if (selected instanceof SelectedItemsList) {
      List<String> ids=((SelectedItemsList<?>)selected).getIds();
      if (ids.isEmpty()) {
        Label noSourceLabel=new Label(messages.noItemsToDisplay());
        selectedListPanel.add(noSourceLabel);
      }
 else {
        HTML filterHTML=new HTML(SearchPreFilterUtils.getFilterParameterHTML(new OneOfManyFilterParameter(RodaConstants.INDEX_UUID,ids)));
        selectedList.add(filterHTML);
      }
    }
 else     if (selected instanceof SelectedItemsFilter) {
      Filter filter=((SelectedItemsFilter<?>)selected).getFilter();
      HTML filterHTML=new HTML(SearchPreFilterUtils.getFilterHTML(filter,selected.getSelectedClass()));
      selectedList.add(filterHTML);
    }
 else     if (selected instanceof SelectedItemsAll || selected instanceof SelectedItemsNone) {
      Label objectLabel=new Label();
      objectLabel.addStyleName("String_Node_Str");
      if (StringUtils.isBlank(selected.getSelectedClass())) {
        objectLabel.setText(messages.noItemsToDisplay());
      }
 else       if (AIP.class.getName().equals(selected.getSelectedClass()) || IndexedAIP.class.getName().equals(selected.getSelectedClass())) {
        objectLabel.setText(messages.allIntellectualEntities());
      }
 else       if (Representation.class.getName().equals(selected.getSelectedClass()) || IndexedRepresentation.class.getName().equals(selected.getSelectedClass())) {
        objectLabel.setText(messages.allRepresentations());
      }
 else       if (File.class.getName().equals(selected.getSelectedClass()) || IndexedFile.class.getName().equals(selected.getSelectedClass())) {
        objectLabel.setText(messages.allFiles());
      }
 else {
        objectLabel.setText(messages.allOfAObject(selected.getSelectedClass()));
      }
      selectedList.add(objectLabel);
    }
 else {
      selectedListPanel.setVisible(false);
    }
  }
}