Program: 116662
Project: 116662
Buggy source:
public void listSubscribedCartridgeInfo(String alias) throws CommandException {
  DefaultHttpClient httpClient=new DefaultHttpClient();
  try {
    HttpResponse response=restClientService.doGet(httpClient,restClientService.getUrl() + listSubscribedCartridgeInfoRestEndpoint + alias,restClientService.getUsername(),restClientService.getPassword());
    String responseCode="String_Node_Str" + response.getStatusLine().getStatusCode();
    if (!responseCode.equals(CliConstants.RESPONSE_OK)) {
      System.out.println("String_Node_Str");
      return;
    }
    String resultString=getHttpResponseString(response);
    GsonBuilder gsonBuilder=new GsonBuilder();
    Gson gson=gsonBuilder.create();
    CartridgeList cartridgeList=gson.fromJson(resultString,CartridgeList.class);
    Cartridge cartridge=cartridgeList.getCartridge().get(0);
    if (cartridge == null) {
      System.out.println("String_Node_Str");
      return;
    }
    Map<String,Set<String>> lbIpMap=getLbIpList(cartridge,httpClient);
    final Set<String> lbPrivateIpSet=lbIpMap.get("String_Node_Str");
    final Set<String> lbFloatingIpSet=lbIpMap.get("String_Node_Str");
    Cartridge[] cartridges=new Cartridge[1];
    cartridges[0]=cartridge;
    RowMapper<Cartridge> cartridgeMapper=new RowMapper<Cartridge>(){
      public String[] getData(      Cartridge cartridge){
        String[] data=lbFloatingIpSet != null ? new String[13] : new String[12];
        data[0]=cartridge.getCartridgeType();
        data[1]=cartridge.getDisplayName();
        data[2]=cartridge.getVersion();
        data[3]=cartridge.isMultiTenant() ? "String_Node_Str" : "String_Node_Str";
        data[4]=cartridge.getCartridgeAlias();
        data[5]=cartridge.getStatus();
        data[6]=cartridge.isMultiTenant() ? "String_Node_Str" : String.valueOf(cartridge.getActiveInstances());
        data[7]=getAccessURLs(cartridge);
        data[8]=cartridge.getRepoURL() != null ? cartridge.getRepoURL() : "String_Node_Str";
        data[9]=lbPrivateIpSet.toString();
        if (lbFloatingIpSet != null) {
          data[10]=lbFloatingIpSet.toString();
        }
        data[11]=cartridge.getDbUserName();
        data[12]=cartridge.getPassword();
        return data;
      }
    }
;
    List<String> headers=new ArrayList<String>();
    headers.add("String_Node_Str");
    headers.add("String_Node_Str");
    headers.add("String_Node_Str");
    headers.add("String_Node_Str");
    headers.add("String_Node_Str");
    headers.add("String_Node_Str");
    headers.add("String_Node_Str");
    headers.add("String_Node_Str");
    headers.add("String_Node_Str");
    headers.add("String_Node_Str");
    if (lbFloatingIpSet != null) {
      headers.add("String_Node_Str");
    }
    headers.add("String_Node_Str");
    headers.add("String_Node_Str");
    System.out.println("String_Node_Str");
    CommandLineUtils.printTable(cartridges,cartridgeMapper,headers.toArray(new String[headers.size()]));
    System.out.println();
  }
 catch (  Exception e) {
    handleException("String_Node_Str",e);
  }
 finally {
    httpClient.getConnectionManager().shutdown();
  }
}

Fixed version (ground truth):
public void listSubscribedCartridgeInfo(String alias) throws CommandException {
  DefaultHttpClient httpClient=new DefaultHttpClient();
  try {
    HttpResponse response=restClientService.doGet(httpClient,restClientService.getUrl() + listSubscribedCartridgeInfoRestEndpoint + alias,restClientService.getUsername(),restClientService.getPassword());
    String responseCode="String_Node_Str" + response.getStatusLine().getStatusCode();
    if (!responseCode.equals(CliConstants.RESPONSE_OK)) {
      System.out.println("String_Node_Str");
      return;
    }
    String resultString=getHttpResponseString(response);
    GsonBuilder gsonBuilder=new GsonBuilder();
    Gson gson=gsonBuilder.create();
    CartridgeList cartridgeList=gson.fromJson(resultString,CartridgeList.class);
    Cartridge cartridge=cartridgeList.getCartridge().get(0);
    if (cartridge == null) {
      System.out.println("String_Node_Str");
      return;
    }
    Map<String,Set<String>> lbIpMap=getLbIpList(cartridge,httpClient);
    final Set<String> lbPrivateIpSet=lbIpMap.get("String_Node_Str");
    final Set<String> lbFloatingIpSet=lbIpMap.get("String_Node_Str");
    Cartridge[] cartridges=new Cartridge[1];
    cartridges[0]=cartridge;
    System.out.println("String_Node_Str");
    System.out.println("String_Node_Str" + cartridge.getCartridgeType());
    System.out.println("String_Node_Str" + cartridge.getDisplayName());
    System.out.println("String_Node_Str" + cartridge.getVersion());
    String tenancy=cartridge.isMultiTenant() ? "String_Node_Str" : "String_Node_Str";
    System.out.println("String_Node_Str" + tenancy);
    System.out.println("String_Node_Str" + cartridge.getCartridgeAlias());
    System.out.println("String_Node_Str" + cartridge.getStatus());
    String instanceCount=cartridge.isMultiTenant() ? "String_Node_Str" : String.valueOf(cartridge.getActiveInstances());
    System.out.println("String_Node_Str" + instanceCount);
    System.out.println("String_Node_Str" + getAccessURLs(cartridge));
    if (cartridge.getRepoURL() != null) {
      System.out.println("String_Node_Str" + cartridge.getRepoURL());
    }
    System.out.println("String_Node_Str" + lbPrivateIpSet.toString());
    if (lbFloatingIpSet != null) {
      System.out.println("String_Node_Str" + lbFloatingIpSet.toString());
    }
    if (cartridge.getProvider().equals("String_Node_Str")) {
      System.out.println("String_Node_Str" + cartridge.getDbUserName());
      System.out.println("String_Node_Str" + cartridge.getPassword());
      System.out.println("String_Node_Str" + cartridge.getIp());
      if (cartridge.getPublicIp() != null) {
        System.out.println("String_Node_Str" + cartridge.getPublicIp());
      }
    }
    System.out.println();
  }
 catch (  Exception e) {
    handleException("String_Node_Str",e);
  }
 finally {
    httpClient.getConnectionManager().shutdown();
  }
}