Program: 188321
Project: 188321
Buggy source:
private void initializeRefererListSelectionState(){
  boolean requireCtrlModifier=true;
  boolean requireShiftModifier=true;
  boolean requireAltModifier=false;
  if (aip != null && representation != null && file != null) {
    refererTitle.setText(file.isDirectory() ? messages.catalogueFolderTitle() : messages.catalogueFileTitle());
    refererBreadcrumb.updatePath(BreadcrumbUtils.getFileBreadcrumbs(aip,representation,file));
    refererBreadcrumb.setVisible(true);
    ListSelectionUtils.bindLayout(file,refererPreviousButton,refererNextButton,keyboardFocus,requireCtrlModifier,requireShiftModifier,requireAltModifier,new ListSelectionUtils.ProcessRelativeItem<IndexedFile>(){
      @Override public void process(      final IndexedFile file){
        Filter filter=new Filter(new SimpleFilterParameter(RodaConstants.DIP_FILE_UUIDS,file.getUUID()));
        openReferred(file,filter);
      }
    }
);
  }
 else   if (aip != null && representation != null) {
    refererTitle.setText(messages.catalogueRepresentationTitle());
    refererBreadcrumb.updatePath(BreadcrumbUtils.getRepresentationBreadcrumbs(aip,representation));
    refererBreadcrumb.setVisible(true);
    ListSelectionUtils.bindLayout(representation,refererPreviousButton,refererNextButton,keyboardFocus,requireCtrlModifier,requireShiftModifier,requireAltModifier,new ListSelectionUtils.ProcessRelativeItem<IndexedRepresentation>(){
      @Override public void process(      final IndexedRepresentation representation){
        Filter filter=new Filter(new SimpleFilterParameter(RodaConstants.DIP_REPRESENTATION_UUIDS,representation.getUUID()));
        openReferred(representation,filter);
      }
    }
);
  }
 else   if (aip != null) {
    refererTitle.setText(messages.catalogueItemTitle());
    refererBreadcrumb.updatePath(BreadcrumbUtils.getAipBreadcrumbs(aip));
    refererBreadcrumb.setVisible(true);
    ListSelectionUtils.bindLayout(aip,refererPreviousButton,refererNextButton,keyboardFocus,requireCtrlModifier,requireShiftModifier,requireAltModifier,new ListSelectionUtils.ProcessRelativeItem<IndexedAIP>(){
      @Override public void process(      final IndexedAIP aip){
        Filter filter=new Filter(new SimpleFilterParameter(RodaConstants.DIP_AIP_UUIDS,aip.getUUID()));
        openReferred(aip,filter);
      }
    }
);
  }
 else {
    refererToolbar.setVisible(false);
  }
}

Fixed version (ground truth):
private void initializeRefererListSelectionState(){
  boolean requireCtrlModifier=true;
  boolean requireShiftModifier=true;
  boolean requireAltModifier=false;
  if (aip != null && representation != null && file != null) {
    GWT.log("String_Node_Str");
    refererTitle.setText(file.isDirectory() ? messages.catalogueFolderTitle() : messages.catalogueFileTitle());
    refererBreadcrumb.updatePath(BreadcrumbUtils.getFileBreadcrumbs(aip,representation,file));
    refererBreadcrumb.setVisible(true);
    ListSelectionUtils.bindLayout(file,refererPreviousButton,refererNextButton,keyboardFocus,requireCtrlModifier,requireShiftModifier,requireAltModifier,new ListSelectionUtils.ProcessRelativeItem<IndexedFile>(){
      @Override public void process(      final IndexedFile file){
        Filter filter=new Filter(new SimpleFilterParameter(RodaConstants.DIP_FILE_UUIDS,file.getUUID()));
        openReferred(file,filter);
      }
    }
);
  }
 else   if (aip != null && representation != null) {
    refererTitle.setText(messages.catalogueRepresentationTitle());
    refererBreadcrumb.updatePath(BreadcrumbUtils.getRepresentationBreadcrumbs(aip,representation));
    refererBreadcrumb.setVisible(true);
    ListSelectionUtils.bindLayout(representation,refererPreviousButton,refererNextButton,keyboardFocus,requireCtrlModifier,requireShiftModifier,requireAltModifier,new ListSelectionUtils.ProcessRelativeItem<IndexedRepresentation>(){
      @Override public void process(      final IndexedRepresentation representation){
        Filter filter=new Filter(new SimpleFilterParameter(RodaConstants.DIP_REPRESENTATION_UUIDS,representation.getUUID()));
        openReferred(representation,filter);
      }
    }
);
  }
 else   if (aip != null) {
    refererTitle.setText(messages.catalogueItemTitle());
    refererBreadcrumb.updatePath(BreadcrumbUtils.getAipBreadcrumbs(aip));
    refererBreadcrumb.setVisible(true);
    ListSelectionUtils.bindLayout(aip,refererPreviousButton,refererNextButton,keyboardFocus,requireCtrlModifier,requireShiftModifier,requireAltModifier,new ListSelectionUtils.ProcessRelativeItem<IndexedAIP>(){
      @Override public void process(      final IndexedAIP aip){
        Filter filter=new Filter(new SimpleFilterParameter(RodaConstants.DIP_AIP_UUIDS,aip.getUUID()));
        openReferred(aip,filter);
      }
    }
);
  }
 else {
    refererToolbar.setVisible(false);
  }
}