Program: 50614
Project: 50614
Buggy source:
@Override public void prepareConfigObject(@NotNull BuildConfiguration buildConfiguration){
  String strHostName=buildConfiguration.getString(REPOSITORY_GERRIT_REPOSITORY_HOSTNAME,"String_Node_Str").trim();
  buildConfiguration.setProperty(REPOSITORY_GERRIT_REPOSITORY_HOSTNAME,strHostName);
  String strPort=buildConfiguration.getString(REPOSITORY_GERRIT_REPOSITORY_PORT,"String_Node_Str").trim();
  buildConfiguration.setProperty(REPOSITORY_GERRIT_REPOSITORY_PORT,strPort);
  String strProject=buildConfiguration.getString(REPOSITORY_GERRIT_PROJECT,"String_Node_Str").trim();
  buildConfiguration.setProperty(REPOSITORY_GERRIT_PROJECT,strProject);
  String strUserName=buildConfiguration.getString(REPOSITORY_GERRIT_USERNAME,"String_Node_Str").trim();
  buildConfiguration.setProperty(REPOSITORY_GERRIT_USERNAME,strUserName);
  String strPhrase=buildConfiguration.getString(TEMPORARY_GERRIT_SSH_PASSPHRASE);
  if (buildConfiguration.getBoolean(TEMPORARY_GERRIT_SSH_PASSPHRASE_CHANGE)) {
    buildConfiguration.setProperty(REPOSITORY_GERRIT_SSH_PASSPHRASE,encrypterRef.get().encrypt(strPhrase));
  }
 else   if (strPhrase == null) {
    strPhrase=buildConfiguration.getString(REPOSITORY_GERRIT_SSH_PASSPHRASE,"String_Node_Str");
  }
  String key="String_Node_Str";
  if (buildConfiguration.getBoolean(TEMPORARY_GERRIT_SSH_KEY_CHANGE)) {
    final Object o=buildConfiguration.getProperty(TEMPORARY_GERRIT_SSH_KEY_FROM_FILE);
    if (o instanceof File) {
      File f=(File)o;
      try {
        key=FileUtils.readFileToString(f);
      }
 catch (      IOException e) {
        log.error(textProvider.getText("String_Node_Str"),e);
        return;
      }
      buildConfiguration.setProperty(REPOSITORY_GERRIT_SSH_KEY,encrypterRef.get().encrypt(key));
    }
 else {
      buildConfiguration.clearProperty(REPOSITORY_GERRIT_SSH_KEY);
    }
  }
 else   if (key.isEmpty()) {
    key=encrypterRef.get().decrypt(buildConfiguration.getString(REPOSITORY_GERRIT_SSH_KEY,"String_Node_Str"));
  }
  File file=prepareSSHKeyFile(buildConfiguration,key);
  buildConfiguration.setProperty(REPOSITORY_GERRIT_SSH_KEY_FILE,file.getAbsolutePath());
}

Fixed version (ground truth):
@Override public void prepareConfigObject(@NotNull BuildConfiguration buildConfiguration){
  String strHostName=buildConfiguration.getString(REPOSITORY_GERRIT_REPOSITORY_HOSTNAME,"String_Node_Str").trim();
  buildConfiguration.setProperty(REPOSITORY_GERRIT_REPOSITORY_HOSTNAME,strHostName);
  String strPort=buildConfiguration.getString(REPOSITORY_GERRIT_REPOSITORY_PORT,"String_Node_Str").trim();
  buildConfiguration.setProperty(REPOSITORY_GERRIT_REPOSITORY_PORT,strPort);
  String strProject=buildConfiguration.getString(REPOSITORY_GERRIT_PROJECT,"String_Node_Str").trim();
  buildConfiguration.setProperty(REPOSITORY_GERRIT_PROJECT,strProject);
  String strUserName=buildConfiguration.getString(REPOSITORY_GERRIT_USERNAME,"String_Node_Str").trim();
  buildConfiguration.setProperty(REPOSITORY_GERRIT_USERNAME,strUserName);
  String strPhrase=buildConfiguration.getString(TEMPORARY_GERRIT_SSH_PASSPHRASE);
  if (buildConfiguration.getBoolean(TEMPORARY_GERRIT_SSH_PASSPHRASE_CHANGE)) {
    buildConfiguration.setProperty(REPOSITORY_GERRIT_SSH_PASSPHRASE,encrypterRef.get().encrypt(strPhrase));
  }
 else   if (strPhrase == null) {
    strPhrase=buildConfiguration.getString(REPOSITORY_GERRIT_SSH_PASSPHRASE,"String_Node_Str");
  }
  String key="String_Node_Str";
  if (buildConfiguration.getBoolean(TEMPORARY_GERRIT_SSH_KEY_CHANGE)) {
    final Object o=buildConfiguration.getProperty(TEMPORARY_GERRIT_SSH_KEY_FROM_FILE);
    if (o instanceof File) {
      File f=(File)o;
      try {
        key=FileUtils.readFileToString(f);
      }
 catch (      IOException e) {
        log.error(textProvider.getText("String_Node_Str"),e);
        return;
      }
      buildConfiguration.setProperty(REPOSITORY_GERRIT_SSH_KEY,encrypterRef.get().encrypt(key));
    }
 else {
      buildConfiguration.clearProperty(REPOSITORY_GERRIT_SSH_KEY);
    }
  }
 else   if (key.isEmpty()) {
    key=encrypterRef.get().decrypt(buildConfiguration.getString(REPOSITORY_GERRIT_SSH_KEY,"String_Node_Str"));
  }
  relativeSSHKeyFilePath=getRelativeRepoPath(buildConfiguration);
  File f=prepareSSHKeyFile(relativeSSHKeyFilePath,key);
  if (f != null) {
    buildConfiguration.setProperty(REPOSITORY_GERRIT_SSH_KEY_FILE,relativeSSHKeyFilePath);
  }
}