Program: 18589
Project: 18589
Buggy source:
/** 
 * Gets the error time slot data.
 * @param ec the ec
 * @param mc the mc
 * @param callback the callback
 * @return the error time slot data
 * @see org.ebayopensource.turmeric.monitoring.client.model.MetricsQueryService#getErrorTimeSlotData(org.ebayopensource.turmeric.monitoring.client.model.ErrorCriteria,org.ebayopensource.turmeric.monitoring.client.model.MetricCriteria,com.google.gwt.user.client.rpc.AsyncCallback)
 */
public void getErrorTimeSlotData(final ErrorCriteria ec,final MetricCriteria mc,final AsyncCallback<ErrorTimeSlotData> callback){
  final String url=URL.encode(ErrorMetricsGraphRequest.getRestURL(ec,mc));
  RequestBuilder builder=new RequestBuilder(RequestBuilder.GET,url);
  final ErrorTimeSlotData data=new ErrorTimeSlotData();
  data.setRestUrl(url);
  data.setErrorCriteria(ec);
  data.setMetricCriteria(mc);
  GWT.log("String_Node_Str" + url);
  try {
    builder.sendRequest(null,new RequestCallback(){
      public void onError(      Request request,      Throwable err){
        callback.onFailure(err);
      }
      public void onResponseReceived(      Request request,      Response response){
        if (response.getStatusCode() != Response.SC_OK) {
          callback.onFailure(new Throwable("String_Node_Str" + response.getStatusCode()));
        }
 else         if (response.getHeader(ERROR_HEADER) != null) {
          callback.onFailure(new Throwable(ConsoleUtil.messages.badRequestData()));
        }
 else {
          String responseText=response.getText();
          ErrorMetricsGraphResponse graphResponse=ErrorMetricsGraphResponse.fromJSON(responseText);
          if (graphResponse == null) {
            callback.onFailure(new Throwable(ConsoleUtil.messages.badOrMissingResponseData()));
          }
 else {
            JsArray<MetricGraphDataJS> rows=graphResponse.getReturnData();
            List<TimeSlotValue> results=new ArrayList<TimeSlotValue>();
            if (rows != null) {
              for (int i=0; i < rows.length(); i++) {
                MetricGraphDataJS js=rows.get(i);
                results.add(js);
              }
            }
            data.setReturnData(results);
            callback.onSuccess(data);
          }
        }
      }
    }
);
  }
 catch (  RequestException x) {
    callback.onFailure(x);
  }
}

Fixed version (ground truth):
/** 
 * Gets the error time slot data.
 * @param ec the ec
 * @param mc the mc
 * @param callback the callback
 * @return the error time slot data
 * @see org.ebayopensource.turmeric.monitoring.client.model.MetricsQueryService#getErrorTimeSlotData(org.ebayopensource.turmeric.monitoring.client.model.ErrorCriteria,org.ebayopensource.turmeric.monitoring.client.model.MetricCriteria,com.google.gwt.user.client.rpc.AsyncCallback)
 */
public void getErrorTimeSlotData(final ErrorCriteria ec,final MetricCriteria mc,final AsyncCallback<ErrorTimeSlotData> callback){
  final String url=URL.encode(ErrorMetricsGraphRequest.getRestURL(ec,mc));
  RequestBuilder builder=new RequestBuilder(RequestBuilder.GET,url);
  final ErrorTimeSlotData data=new ErrorTimeSlotData();
  data.setRestUrl(url);
  data.setErrorCriteria(ec);
  data.setMetricCriteria(mc);
  GWT.log("String_Node_Str" + url);
  try {
    builder.sendRequest(null,new RequestCallback(){
      public void onError(      Request request,      Throwable err){
        callback.onFailure(err);
      }
      public void onResponseReceived(      Request request,      Response response){
        if (response.getStatusCode() != Response.SC_OK) {
          callback.onFailure(new Throwable("String_Node_Str" + response.getStatusCode()));
        }
 else         if (response.getHeader(ERROR_HEADER) != null && response.getHeader(ERROR_HEADER).length() > 0) {
          callback.onFailure(new Throwable(ConsoleUtil.messages.badRequestData()));
        }
 else {
          String responseText=response.getText();
          ErrorMetricsGraphResponse graphResponse=ErrorMetricsGraphResponse.fromJSON(responseText);
          if (graphResponse == null) {
            callback.onFailure(new Throwable(ConsoleUtil.messages.badOrMissingResponseData()));
          }
 else {
            JsArray<MetricGraphDataJS> rows=graphResponse.getReturnData();
            List<TimeSlotValue> results=new ArrayList<TimeSlotValue>();
            if (rows != null) {
              for (int i=0; i < rows.length(); i++) {
                MetricGraphDataJS js=rows.get(i);
                results.add(js);
              }
            }
            data.setReturnData(results);
            callback.onSuccess(data);
          }
        }
      }
    }
);
  }
 catch (  RequestException x) {
    callback.onFailure(x);
  }
}