Program: 115546
Project: 115546
Buggy source:
@Override public boolean updateNetworkPartition(NetworkPartition networkPartition) throws NetworkPartitionNotExistsException {
  try {
    handleNullObject(networkPartition,"String_Node_Str");
    handleNullObject(networkPartition.getUuid(),"String_Node_Str");
    if (log.isInfoEnabled()) {
      log.info(String.format("String_Node_Str",networkPartition.getUuid()));
    }
    String networkPartitionId=networkPartition.getId();
    String networkPartitionUuid=networkPartition.getUuid();
    if (cloudControllerContext.getNetworkPartition(networkPartitionId) == null) {
      String message=String.format("String_Node_Str" + "String_Node_Str",networkPartitionUuid,networkPartitionId);
      log.error(message);
      throw new NetworkPartitionNotExistsException(message);
    }
    if (networkPartition.getPartitions() != null) {
      for (      Partition partition : networkPartition.getPartitions()) {
        if (partition != null) {
          if (log.isInfoEnabled()) {
            log.info(String.format("String_Node_Str" + "String_Node_Str",networkPartitionUuid,networkPartitionId,partition.getId()));
          }
          partition.setProvider(networkPartition.getProvider());
          validatePartition(partition);
          if (log.isInfoEnabled()) {
            log.info(String.format("String_Node_Str" + "String_Node_Str",networkPartitionUuid,networkPartitionId,partition.getId()));
          }
        }
      }
    }
    CloudControllerContext.getInstance().addNetworkPartition(networkPartition);
    CloudControllerContext.getInstance().persist();
    if (log.isInfoEnabled()) {
      log.info(String.format("String_Node_Str" + "String_Node_Str",networkPartitionUuid,networkPartitionId));
    }
    return true;
  }
 catch (  Exception e) {
    String message=e.getMessage();
    log.error(message);
    throw new CloudControllerException(message,e);
  }
}

Fixed version (ground truth):
@Override public boolean updateNetworkPartition(NetworkPartition networkPartition) throws NetworkPartitionNotExistsException {
  try {
    handleNullObject(networkPartition,"String_Node_Str");
    handleNullObject(networkPartition.getUuid(),"String_Node_Str");
    if (log.isInfoEnabled()) {
      log.info(String.format("String_Node_Str",networkPartition.getUuid()));
    }
    String networkPartitionId=networkPartition.getId();
    String networkPartitionUuid=networkPartition.getUuid();
    if (cloudControllerContext.getNetworkPartition(networkPartitionUuid) == null) {
      String message=String.format("String_Node_Str" + "String_Node_Str",networkPartitionUuid,networkPartitionId);
      log.error(message);
      throw new NetworkPartitionNotExistsException(message);
    }
    if (networkPartition.getPartitions() != null) {
      for (      Partition partition : networkPartition.getPartitions()) {
        if (partition != null) {
          if (log.isInfoEnabled()) {
            log.info(String.format("String_Node_Str" + "String_Node_Str",networkPartitionUuid,networkPartitionId,partition.getId()));
          }
          partition.setProvider(networkPartition.getProvider());
          validatePartition(partition);
          if (log.isInfoEnabled()) {
            log.info(String.format("String_Node_Str" + "String_Node_Str",networkPartitionUuid,networkPartitionId,partition.getId()));
          }
        }
      }
    }
    CloudControllerContext.getInstance().addNetworkPartition(networkPartition);
    CloudControllerContext.getInstance().persist();
    if (log.isInfoEnabled()) {
      log.info(String.format("String_Node_Str" + "String_Node_Str",networkPartitionUuid,networkPartitionId));
    }
    return true;
  }
 catch (  Exception e) {
    String message=e.getMessage();
    log.error(message);
    throw new CloudControllerException(message,e);
  }
}