Program: 116683
Project: 116683
Buggy source:
public void listSubscribedCartridgeInfo(final boolean full,String alias) throws CommandException {
  DefaultHttpClient httpClient=new DefaultHttpClient();
  try {
    HttpResponse response=restClientService.doGet(httpClient,restClientService.getUrl() + listSubscribedCartridgeInfoRestEndpoint + "String_Node_Str"+ 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();
    Cartridge cartridge=gson.fromJson(resultString,Cartridge.class);
    if (cartridge == null) {
      System.out.println("String_Node_Str");
      return;
    }
    final Set<String> lbIpList=getLbIpList(cartridge,httpClient);
    Cartridge[] cartridges=new Cartridge[1];
    cartridges[0]=cartridge;
    RowMapper<Cartridge> cartridgeMapper=new RowMapper<Cartridge>(){
      public String[] getData(      Cartridge cartridge){
        String[] data=full ? new String[10] : new String[7];
        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());
        if (full) {
          data[7]=getAccessURLs(cartridge);
          data[8]=cartridge.getRepoURL() != null ? cartridge.getRepoURL() : "String_Node_Str";
        }
        data[9]=lbIpList.toString();
        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");
    if (full) {
      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;
    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();
  }
}