Program: 122983
Project: 122983
Buggy source:
protected void okPressed(){
  if (statusCombo == null) {
    return;
  }
  boolean modified=false;
  String newStatus=null;
  if (getModifiedVersionItems().size() > 0)   newStatus=statusHelper.getStatusLabel(statusCombo.getText());
  for (  RepositoryObject object : getModifiedVersionItems()) {
    if (!isFixedstatus()) {
      newStatus=object.getStatusCode();
    }
    if (object != null && object.getProperty() != null) {
      if (!newStatus.equals(object.getProperty().getOldStatusCode())) {
        isApplied=false;
        modified=true;
        break;
      }
    }
  }
  if (modified) {
    boolean confirm=false;
    if (isFixedstatus()) {
      confirm=MessageDialog.openConfirm(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str",newStatus));
      if (confirm) {
        for (        RepositoryObject object : getModifiedVersionItems()) {
          if (techinalButton.getSelection()) {
            ERepositoryObjectType type=object.getRepositoryNode().getContentType();
            if (!type.equals(ERepositoryObjectType.DOCUMENTATION) && !type.equals(ERepositoryObjectType.BUSINESS_PROCESS)) {
              object.setStatusCode(newStatus);
            }
          }
 else {
            ERepositoryObjectType type=object.getRepositoryNode().getContentType();
            if (type.equals(ERepositoryObjectType.DOCUMENTATION) || type.equals(ERepositoryObjectType.BUSINESS_PROCESS)) {
              object.setStatusCode(newStatus);
            }
          }
        }
      }
    }
 else {
      StatusConfirmSettingDialog chanedDialog=new StatusConfirmSettingDialog(getShell(),getModifiedVersionItems(),statusHelper);
      confirm=(chanedDialog.open() == Window.OK);
    }
    if (confirm) {
      updateItemsVersion();
    }
  }
 else {
    if (!getModifiedVersionItems().isEmpty() && !isApplied) {
      MessageDialog.openWarning(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
    }
  }
}

Fixed version (ground truth):
protected void okPressed(){
  if (statusCombo == null) {
    return;
  }
  boolean modified=false;
  String newStatus=null;
  if (getModifiedVersionItems().size() > 0)   newStatus=statusHelper.getStatusCode(statusCombo.getText());
  for (  RepositoryObject object : getModifiedVersionItems()) {
    if (!isFixedstatus()) {
      newStatus=object.getStatusCode();
    }
    if (object != null && object.getProperty() != null) {
      if (!newStatus.equals(object.getProperty().getOldStatusCode())) {
        isApplied=false;
        modified=true;
        break;
      }
    }
  }
  if (modified) {
    boolean confirm=false;
    if (isFixedstatus()) {
      confirm=MessageDialog.openConfirm(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str",newStatus));
      if (confirm) {
        for (        RepositoryObject object : getModifiedVersionItems()) {
          if (techinalButton.getSelection()) {
            ERepositoryObjectType type=object.getRepositoryNode().getContentType();
            if (!type.equals(ERepositoryObjectType.DOCUMENTATION) && !type.equals(ERepositoryObjectType.BUSINESS_PROCESS)) {
              object.setStatusCode(newStatus);
            }
          }
 else {
            ERepositoryObjectType type=object.getRepositoryNode().getContentType();
            if (type.equals(ERepositoryObjectType.DOCUMENTATION) || type.equals(ERepositoryObjectType.BUSINESS_PROCESS)) {
              object.setStatusCode(newStatus);
            }
          }
        }
      }
    }
 else {
      StatusConfirmSettingDialog chanedDialog=new StatusConfirmSettingDialog(getShell(),getModifiedVersionItems(),statusHelper);
      confirm=(chanedDialog.open() == Window.OK);
    }
    if (confirm) {
      updateItemsVersion();
    }
  }
 else {
    if (!getModifiedVersionItems().isEmpty() && !isApplied) {
      MessageDialog.openWarning(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
    }
  }
}