Program: 116723
Project: 116723
Buggy source:
@Override public void run(){
  String clusterId=memberContext.getClusterId();
  Partition partition=memberContext.getPartition();
  String str=clusterId.substring(0,10);
  String group=str.replaceAll("String_Node_Str","String_Node_Str");
  try {
    String autoAssignIpProp=iaasProvider.getProperty(CloudControllerConstants.AUTO_ASSIGN_IP_PROPERTY);
    String ip="String_Node_Str";
    if (autoAssignIpProp == null || (autoAssignIpProp != null && autoAssignIpProp.equals("String_Node_Str"))) {
      Iaas iaas=iaasProvider.getIaas();
      ip=iaas.associateAddress(iaasProvider,node);
      memberContext.setAllocatedIpAddress(ip);
      log.info("String_Node_Str" + memberContext.toString());
    }
    if (node.getPublicAddresses() != null && node.getPublicAddresses().iterator().hasNext()) {
      ip=node.getPublicAddresses().iterator().next();
      memberContext.setPublicIpAddress(ip);
      log.info("String_Node_Str" + memberContext.toString());
    }
    if (node.getPrivateAddresses() != null && node.getPrivateAddresses().iterator().hasNext()) {
      ip=node.getPrivateAddresses().iterator().next();
      memberContext.setPrivateIpAddress(ip);
      log.info("String_Node_Str" + memberContext.toString());
    }
    dataHolder.addMemberContext(memberContext);
    persist();
    String memberID=memberContext.getMemberId();
    TopologyBuilder.handleMemberSpawned(memberID,cartridgeType,clusterId,memberContext.getNetworkPartitionId(),partition.getId(),ip,memberContext.getLbClusterId());
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str" + node.toString() + "String_Node_Str");
    }
  }
 catch (  Exception e) {
    String msg="String_Node_Str" + memberContext.toString();
    log.error(msg,e);
    throw new CloudControllerException(msg,e);
  }
}

Fixed version (ground truth):
@Override public void run(){
  String clusterId=memberContext.getClusterId();
  Partition partition=memberContext.getPartition();
  try {
    String autoAssignIpProp=iaasProvider.getProperty(CloudControllerConstants.AUTO_ASSIGN_IP_PROPERTY);
    String ip="String_Node_Str";
    if (autoAssignIpProp == null || (autoAssignIpProp != null && autoAssignIpProp.equals("String_Node_Str"))) {
      Iaas iaas=iaasProvider.getIaas();
      ip=iaas.associateAddress(iaasProvider,node);
      memberContext.setAllocatedIpAddress(ip);
      log.info("String_Node_Str" + memberContext.toString());
    }
    if (node.getPublicAddresses() != null && node.getPublicAddresses().iterator().hasNext()) {
      ip=node.getPublicAddresses().iterator().next();
      memberContext.setPublicIpAddress(ip);
      log.info("String_Node_Str" + memberContext.toString());
    }
    if (node.getPrivateAddresses() != null && node.getPrivateAddresses().iterator().hasNext()) {
      ip=node.getPrivateAddresses().iterator().next();
      memberContext.setPrivateIpAddress(ip);
      log.info("String_Node_Str" + memberContext.toString());
    }
    dataHolder.addMemberContext(memberContext);
    persist();
    String memberID=memberContext.getMemberId();
    TopologyBuilder.handleMemberSpawned(memberID,cartridgeType,clusterId,memberContext.getNetworkPartitionId(),partition.getId(),ip,memberContext.getLbClusterId());
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str" + node.toString() + "String_Node_Str");
    }
  }
 catch (  Exception e) {
    String msg="String_Node_Str" + memberContext.toString();
    log.error(msg,e);
    throw new CloudControllerException(msg,e);
  }
}