Program: 125263
Project: 125263
Buggy source:
@Override public void updateMavenResolver(Dictionary<String,String> props){
  if (props == null) {
    props=new Hashtable<String,String>();
  }
  String repositories=null;
  String custom_server=serverBean.getServer();
  String custom_user=serverBean.getUserName();
  String custom_pass=serverBean.getPassword();
  String release_rep=serverBean.getRepositoryId();
  String snapshot_rep=serverBean.getSnapshotRepId();
  if (custom_server.endsWith(NexusConstants.SLASH)) {
    custom_server=custom_server.substring(0,custom_server.length() - 1);
  }
  if (custom_user != null && !"String_Node_Str".equals(custom_user)) {
    String[] split=custom_server.split("String_Node_Str");
    custom_server=split[0] + "String_Node_Str" + custom_user+ "String_Node_Str"+ custom_pass+ "String_Node_Str"+ split[1]+ getRepositoryPrefixPath();
  }
 else {
    custom_server=custom_server + getRepositoryPrefixPath();
  }
  if (release_rep != null) {
    String releaseUrl=custom_server + release_rep + "String_Node_Str"+ release_rep;
    repositories=releaseUrl;
  }
  if (snapshot_rep != null) {
    String snapshotUrl=custom_server + snapshot_rep + "String_Node_Str"+ snapshot_rep+ NexusConstants.SNAPSHOTS;
    if (repositories != null) {
      repositories=repositories + "String_Node_Str" + snapshotUrl;
    }
 else {
      repositories=snapshotUrl;
    }
  }
  if (repositories != null) {
    props.put(PAX_PID + '.' + PROPERTY_REPOSITORIES,repositories);
  }
  props.put("String_Node_Str","String_Node_Str");
  try {
    TalendMavenResolver.updateMavenResolver(props);
  }
 catch (  Exception e) {
    throw new RuntimeException("String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public void updateMavenResolver(Dictionary<String,String> props){
  if (props == null) {
    props=new Hashtable<String,String>();
  }
  String repositories=null;
  String custom_server=serverBean.getServer();
  String custom_user=serverBean.getUserName();
  String custom_pass=serverBean.getPassword();
  String release_rep=serverBean.getRepositoryId();
  String snapshot_rep=serverBean.getSnapshotRepId();
  if (custom_server.endsWith(NexusConstants.SLASH)) {
    custom_server=custom_server.substring(0,custom_server.length() - 1);
  }
  if (custom_user != null && !"String_Node_Str".equals(custom_user)) {
    String[] split=custom_server.split("String_Node_Str");
    custom_server=split[0] + "String_Node_Str" + custom_user+ "String_Node_Str"+ custom_pass+ "String_Node_Str"+ split[1]+ getRepositoryPrefixPath();
  }
 else {
    custom_server=custom_server + getRepositoryPrefixPath();
  }
  if (release_rep != null) {
    String releaseUrl=custom_server + release_rep + "String_Node_Str"+ release_rep;
    repositories=releaseUrl;
  }
  if (snapshot_rep != null) {
    String snapshotUrl=custom_server + snapshot_rep + "String_Node_Str"+ snapshot_rep+ NexusConstants.SNAPSHOTS;
    if (repositories != null) {
      repositories=repositories + "String_Node_Str" + snapshotUrl;
    }
 else {
      repositories=snapshotUrl;
    }
  }
  if (repositories != null) {
    props.put(PAX_PID + '.' + PROPERTY_REPOSITORIES,repositories);
  }
  props.put("String_Node_Str","String_Node_Str");
  props.put("String_Node_Str","String_Node_Str");
  try {
    TalendMavenResolver.updateMavenResolver(props);
  }
 catch (  Exception e) {
    throw new RuntimeException("String_Node_Str");
  }
}