Program: 116202
Project: 116202
Buggy source:
private ClusterLevelNetworkPartitionContext parseDeploymentPolicy(ClusterInstance clusterInstance,Cluster cluster,ChildPolicy childPolicy,ClusterLevelNetworkPartitionContext clusterLevelNetworkPartitionContext) throws PolicyValidationException, PartitionValidationException {
  if (log.isDebugEnabled()) {
    log.debug("String_Node_Str" + childPolicy.getId());
  }
  if (childPolicy == null) {
    String msg="String_Node_Str" + childPolicy.getId();
    log.error(msg);
    throw new PolicyValidationException(msg);
  }
  ChildLevelPartition[] childLevelPartitions=childPolicy.getChildLevelNetworkPartition(clusterLevelNetworkPartitionContext.getId()).getChildLevelPartitions();
  if (childLevelPartitions == null) {
    String msg="String_Node_Str" + childPolicy.getId();
    log.error(msg);
    throw new PolicyValidationException(msg);
  }
  ChildLevelNetworkPartition networkPartition;
  networkPartition=childPolicy.getChildLevelNetworkPartition(clusterInstance.getNetworkPartitionId());
  if (clusterLevelNetworkPartitionContext == null) {
    clusterLevelNetworkPartitionContext=new ClusterLevelNetworkPartitionContext(networkPartition.getId(),networkPartition.getPartitionAlgo(),networkPartition.getMin());
  }
  for (  ChildLevelPartition childLevelPartition : networkPartition.getChildLevelPartitions()) {
    addPartition(clusterInstance,cluster,clusterLevelNetworkPartitionContext,childLevelPartition);
    if (log.isInfoEnabled()) {
      log.info(String.format("String_Node_Str",childLevelPartition.getPartitionId()));
    }
  }
  if (log.isInfoEnabled()) {
    log.info(String.format("String_Node_Str" + "String_Node_Str",clusterLevelNetworkPartitionContext.getId()));
  }
  return clusterLevelNetworkPartitionContext;
}

Fixed version (ground truth):
private ClusterLevelNetworkPartitionContext parseDeploymentPolicy(ClusterInstance clusterInstance,Cluster cluster,ChildPolicy childPolicy,ClusterLevelNetworkPartitionContext clusterLevelNetworkPartitionContext) throws PolicyValidationException, PartitionValidationException {
  if (log.isDebugEnabled()) {
    log.debug("String_Node_Str" + childPolicy.getId());
  }
  if (childPolicy == null) {
    String msg="String_Node_Str" + childPolicy.getId();
    log.error(msg);
    throw new PolicyValidationException(msg);
  }
  ChildLevelPartition[] childLevelPartitions=childPolicy.getChildLevelNetworkPartition(clusterLevelNetworkPartitionContext.getId()).getChildLevelPartitions();
  if (childLevelPartitions == null) {
    String msg="String_Node_Str" + childPolicy.getId();
    log.error(msg);
    throw new PolicyValidationException(msg);
  }
  ChildLevelNetworkPartition networkPartition;
  networkPartition=childPolicy.getChildLevelNetworkPartition(clusterInstance.getNetworkPartitionId());
  if (clusterLevelNetworkPartitionContext == null) {
    clusterLevelNetworkPartitionContext=new ClusterLevelNetworkPartitionContext(networkPartition.getId(),networkPartition.getPartitionAlgo(),networkPartition.getMin());
  }
  for (  ChildLevelPartition childLevelPartition : networkPartition.getChildLevelPartitions()) {
    addPartition(clusterInstance,cluster,clusterLevelNetworkPartitionContext,childLevelPartition);
  }
  return clusterLevelNetworkPartitionContext;
}