Program: 122679
Project: 122679
Buggy source:
public palodatavalue getValue(long lDimensionElementIdentifierArray[]) throws paloexception {
  List qparams=new ArrayList();
  qparams.add(new BasicNameValuePair("String_Node_Str",plConn.getPaloToken()));
  qparams.add(new BasicNameValuePair("String_Node_Str",String.valueOf(lDatabaseId)));
  qparams.add(new BasicNameValuePair("String_Node_Str",String.valueOf(plCube.getCubeId())));
  StringBuilder sbCoordinates=new StringBuilder();
  int iPos=0;
  long al[];
  int j=(al=lDimensionElementIdentifierArray).length;
  for (int i=0; i < j; i++) {
    long lDimensionElementIdentifier=al[i];
    if (iPos > 0)     sbCoordinates.append("String_Node_Str");
    sbCoordinates.append(lDimensionElementIdentifier);
    iPos++;
  }
  qparams.add(new BasicNameValuePair("String_Node_Str",sbCoordinates.toString()));
  palodatavalue rcDataValue=null;
  try {
    HttpEntity entity=plConn.sendToServer(qparams,"String_Node_Str");
    CsvReader csv=new CsvReader(entity.getContent(),Charset.forName("String_Node_Str"));
    csv.setDelimiter(';');
    csv.setTextQualifier('"');
    while (csv.readRecord())     if (palohelpers.StringToInt(csv.get(0)) == 1) {
      if (palohelpers.StringToInt(csv.get(1)) > 0)       rcDataValue=new palodatavalue(palohelpers.StringToDouble(csv.get(2)));
 else       rcDataValue=new palodatavalue(0.0D);
    }
 else     if (palohelpers.StringToInt(csv.get(0)) == 0)     rcDataValue=new palodatavalue(csv.get(2));
    csv.close();
    entity.consumeContent();
    return rcDataValue;
  }
 catch (  Exception e) {
    throw new paloexception(e.getMessage());
  }
}

Fixed version (ground truth):
public palodatavalue getValue(long lDimensionElementIdentifierArray[]) throws paloexception {
  List qparams=new ArrayList();
  qparams.add(new BasicNameValuePair("String_Node_Str",plConn.getPaloToken()));
  qparams.add(new BasicNameValuePair("String_Node_Str",String.valueOf(lDatabaseId)));
  qparams.add(new BasicNameValuePair("String_Node_Str",String.valueOf(plCube.getCubeId())));
  StringBuilder sbCoordinates=new StringBuilder();
  int iPos=0;
  long al[];
  int j=(al=lDimensionElementIdentifierArray).length;
  for (int i=0; i < j; i++) {
    long lDimensionElementIdentifier=al[i];
    if (iPos > 0) {
      sbCoordinates.append("String_Node_Str");
    }
    sbCoordinates.append(lDimensionElementIdentifier);
    iPos++;
  }
  qparams.add(new BasicNameValuePair("String_Node_Str",sbCoordinates.toString()));
  palodatavalue rcDataValue=null;
  try {
    HttpEntity entity=plConn.sendToServer(qparams,"String_Node_Str");
    CSVReader csv=new CSVReader(entity.getContent(),"String_Node_Str","String_Node_Str",';','"','\\',false,0);
    String[] result=null;
    while ((result=csv.readNext()) != null) {
      if (palohelpers.StringToInt(result[0]) == 1) {
        if (palohelpers.StringToInt(result[1]) > 0) {
          rcDataValue=new palodatavalue(palohelpers.StringToDouble(result[2]));
        }
 else {
          rcDataValue=new palodatavalue(0.0D);
        }
      }
 else       if (palohelpers.StringToInt(result[0]) == 0) {
        rcDataValue=new palodatavalue(result[2]);
      }
    }
    csv.close();
    entity.consumeContent();
    return rcDataValue;
  }
 catch (  Exception e) {
    throw new paloexception(e.getMessage());
  }
}