Program: 59445
Project: 59445
Buggy source:
/** 
 * Get the market depth as a Depth object.
 * @param currencyPair The queried currency pair.
 * @throws TradeDataNotAvailableException if the depth is not available.
 * @see https://www.mintpal.com/api#marketorders
 */
public Depth getDepth(CurrencyPair currencyPair) throws TradeDataNotAvailableException {
  if (!isSupportedCurrencyPair(currencyPair)) {
    throw new CurrencyNotSupportedException("String_Node_Str" + currencyPair.toString() + "String_Node_Str"+ _name);
  }
  JSONObject buyJSON=null, sellJSON=null;
  String url=_url + "String_Node_Str" + currencyPair.getCurrency().getName()+ "String_Node_Str"+ currencyPair.getPaymentCurrency().getName()+ "String_Node_Str";
  String requestResult=HttpUtils.httpGet(url + "String_Node_Str");
  if (requestResult != null) {
    try {
      JSONObject jsonResult=JSONObject.fromObject(requestResult);
      if (jsonResult.containsKey("String_Node_Str")) {
        LogUtils.getInstance().getLogger().error("String_Node_Str" + _name + "String_Node_Str"+ currencyPair.toString()+ "String_Node_Str"+ jsonResult.getJSONObject("String_Node_Str").getString("String_Node_Str"));
        throw new TradeDataNotAvailableException("String_Node_Str" + this._name);
      }
 else {
        buyJSON=jsonResult;
      }
    }
 catch (    JSONException je) {
      LogUtils.getInstance().getLogger().error("String_Node_Str" + this._name + "String_Node_Str"+ je.toString());
      throw new TradeDataNotAvailableException("String_Node_Str" + this._name);
    }
  }
 else {
    throw new TradeDataNotAvailableException(this._name + "String_Node_Str");
  }
  try {
    Thread.sleep(getMinimumRequestInterval() / 1000L);
  }
 catch (  InterruptedException ie) {
  }
  requestResult=HttpUtils.httpGet(url + "String_Node_Str");
  if (requestResult != null) {
    try {
      JSONObject jsonResult=JSONObject.fromObject(requestResult);
      if (jsonResult.containsKey("String_Node_Str")) {
        LogUtils.getInstance().getLogger().error("String_Node_Str" + _name + "String_Node_Str"+ currencyPair.toString()+ "String_Node_Str"+ jsonResult.getJSONObject("String_Node_Str").getString("String_Node_Str"));
        throw new TradeDataNotAvailableException("String_Node_Str" + this._name);
      }
 else {
        sellJSON=jsonResult;
      }
    }
 catch (    JSONException je) {
      LogUtils.getInstance().getLogger().error("String_Node_Str" + this._name + "String_Node_Str"+ je.toString());
      throw new TradeDataNotAvailableException("String_Node_Str" + this._name);
    }
  }
 else {
    throw new TradeDataNotAvailableException(this._name + "String_Node_Str");
  }
  return new MintPalDepth(buyJSON,sellJSON,currencyPair,this);
}

Fixed version (ground truth):
/** 
 * Get the market depth as a Depth object.
 * @param currencyPair The queried currency pair.
 * @throws TradeDataNotAvailableException if the depth is not available.
 * @see https://www.mintpal.com/api#marketorders
 */
public Depth getDepth(CurrencyPair currencyPair) throws TradeDataNotAvailableException {
  if (!isSupportedCurrencyPair(currencyPair)) {
    throw new CurrencyNotSupportedException("String_Node_Str" + currencyPair.toString() + "String_Node_Str"+ _name);
  }
  JSONObject buyJSON=null, sellJSON=null;
  String url=_url + "String_Node_Str" + currencyPair.getCurrency().toString()+ "String_Node_Str"+ currencyPair.getPaymentCurrency().toString()+ "String_Node_Str";
  String requestResult=HttpUtils.httpGet(url + "String_Node_Str");
  if (requestResult != null) {
    try {
      JSONObject jsonResult=JSONObject.fromObject(requestResult);
      if (jsonResult.containsKey("String_Node_Str")) {
        LogUtils.getInstance().getLogger().error("String_Node_Str" + _name + "String_Node_Str"+ currencyPair.toString()+ "String_Node_Str"+ jsonResult.getJSONObject("String_Node_Str").getString("String_Node_Str"));
        throw new TradeDataNotAvailableException("String_Node_Str" + this._name);
      }
 else {
        buyJSON=jsonResult;
      }
    }
 catch (    JSONException je) {
      LogUtils.getInstance().getLogger().error("String_Node_Str" + this._name + "String_Node_Str"+ je.toString());
      throw new TradeDataNotAvailableException("String_Node_Str" + this._name);
    }
  }
 else {
    throw new TradeDataNotAvailableException(this._name + "String_Node_Str");
  }
  try {
    Thread.sleep(getMinimumRequestInterval() / 1000L);
  }
 catch (  InterruptedException ie) {
  }
  requestResult=HttpUtils.httpGet(url + "String_Node_Str");
  if (requestResult != null) {
    try {
      JSONObject jsonResult=JSONObject.fromObject(requestResult);
      if (jsonResult.containsKey("String_Node_Str")) {
        LogUtils.getInstance().getLogger().error("String_Node_Str" + _name + "String_Node_Str"+ currencyPair.toString()+ "String_Node_Str"+ jsonResult.getJSONObject("String_Node_Str").getString("String_Node_Str"));
        throw new TradeDataNotAvailableException("String_Node_Str" + this._name);
      }
 else {
        sellJSON=jsonResult;
      }
    }
 catch (    JSONException je) {
      LogUtils.getInstance().getLogger().error("String_Node_Str" + this._name + "String_Node_Str"+ je.toString());
      throw new TradeDataNotAvailableException("String_Node_Str" + this._name);
    }
  }
 else {
    throw new TradeDataNotAvailableException(this._name + "String_Node_Str");
  }
  return new MintPalDepth(buyJSON,sellJSON,currencyPair,this);
}