Program: 64038
Project: 64038
Buggy source:
@Override public StackDescription describeStackWithResources(User user,Stack stack,Credential credential){
  AwsTemplate awsInfra=(AwsTemplate)stack.getTemplate();
  AwsCredential awsCredential=(AwsCredential)credential;
  DescribeStacksResult stackResult=null;
  DescribeStackResourcesResult resourcesResult=null;
  DescribeInstancesResult instancesResult=null;
  Resource resource=stack.getResourceByType(ResourceType.CLOUDFORMATION_STACK);
  if (resource != null) {
    try {
      AmazonCloudFormationClient client=awsStackUtil.createCloudFormationClient(awsInfra.getRegion(),awsCredential);
      DescribeStacksRequest stackRequest=new DescribeStacksRequest().withStackName(resource.getResourceName());
      stackResult=client.describeStacks(stackRequest);
      DescribeStackResourcesRequest resourcesRequest=new DescribeStackResourcesRequest().withStackName(resource.getResourceName());
      resourcesResult=client.describeStackResources(resourcesRequest);
    }
 catch (    AmazonServiceException e) {
      if (CF_SERVICE_NAME.equals(e.getServiceName()) && e.getErrorMessage().equals(String.format("String_Node_Str",resource.getResourceName()))) {
        LOGGER.error("String_Node_Str",resource.getResourceName());
        stackResult=new DescribeStacksResult();
      }
 else {
        throw e;
      }
    }
    AmazonEC2Client ec2Client=awsStackUtil.createEC2Client(awsInfra.getRegion(),awsCredential);
    DescribeInstancesRequest instancesRequest=new DescribeInstancesRequest().withFilters(new Filter().withName("String_Node_Str" + INSTANCE_TAG_NAME).withValues(resource.getResourceName()));
    instancesResult=ec2Client.describeInstances(instancesRequest);
  }
  return new DetailedAwsStackDescription(stackResult,resourcesResult,instancesResult);
}

Fixed version (ground truth):
@Override public StackDescription describeStackWithResources(User user,Stack stack,Credential credential){
  AwsTemplate awsInfra=(AwsTemplate)stack.getTemplate();
  AwsCredential awsCredential=(AwsCredential)credential;
  DescribeStacksResult stackResult=null;
  DescribeStackResourcesResult resourcesResult=null;
  DescribeInstancesResult instancesResult=null;
  Resource resource=stack.getResourceByType(ResourceType.CLOUDFORMATION_STACK);
  if (resource != null) {
    try {
      AmazonCloudFormationClient client=awsStackUtil.createCloudFormationClient(awsInfra.getRegion(),awsCredential);
      DescribeStacksRequest stackRequest=new DescribeStacksRequest().withStackName(resource.getResourceName());
      stackResult=client.describeStacks(stackRequest);
      DescribeStackResourcesRequest resourcesRequest=new DescribeStackResourcesRequest().withStackName(resource.getResourceName());
      resourcesResult=client.describeStackResources(resourcesRequest);
    }
 catch (    AmazonServiceException e) {
      if (CF_SERVICE_NAME.equals(e.getServiceName()) && e.getErrorMessage().equals(String.format("String_Node_Str",resource.getResourceName()))) {
        LOGGER.error("String_Node_Str",resource.getResourceName());
        stackResult=new DescribeStacksResult();
      }
 else {
        throw e;
      }
    }
    try {
      AmazonEC2Client ec2Client=awsStackUtil.createEC2Client(awsInfra.getRegion(),awsCredential);
      DescribeInstancesRequest instancesRequest=new DescribeInstancesRequest().withFilters(new Filter().withName("String_Node_Str" + INSTANCE_TAG_NAME).withValues(resource.getResourceName()));
      instancesResult=ec2Client.describeInstances(instancesRequest);
    }
 catch (    Exception ex) {
      instancesResult=new DescribeInstancesResult();
    }
  }
  return new DetailedAwsStackDescription(stackResult,resourcesResult,instancesResult);
}