Program: 156080
Project: 156080
Buggy source:
@Override protected Position handlePosition(Position position){
  Device device=Context.getIdentityManager().getDeviceById(position.getDeviceId());
  String attributes=MiscFormatter.toJsonString(position.getAttributes());
  String request=url.replace("String_Node_Str",device.getUniqueId()).replace("String_Node_Str",String.valueOf(position.getDeviceId())).replace("String_Node_Str",String.valueOf(position.getProtocol())).replace("String_Node_Str",String.valueOf(position.getDeviceTime().getTime())).replace("String_Node_Str",String.valueOf(position.getFixTime().getTime())).replace("String_Node_Str",String.valueOf(position.getLatitude())).replace("String_Node_Str",String.valueOf(position.getValid())).replace("String_Node_Str",String.valueOf(position.getLongitude())).replace("String_Node_Str",String.valueOf(position.getAltitude())).replace("String_Node_Str",String.valueOf(position.getSpeed())).replace("String_Node_Str",String.valueOf(position.getCourse())).replace("String_Node_Str",calculateStatus(position));
  if (position.getAddress() != null) {
    try {
      request=request.replace("String_Node_Str",URLEncoder.encode(position.getAddress(),"String_Node_Str"));
    }
 catch (    UnsupportedEncodingException error) {
      Log.warning(error);
    }
  }
  if (request.contains("String_Node_Str")) {
    try {
      request=request.replace("String_Node_Str",URLEncoder.encode(attributes,"String_Node_Str"));
    }
 catch (    UnsupportedEncodingException error) {
      Log.warning(error);
    }
  }
  if (request.contains("String_Node_Str")) {
    request=request.replace("String_Node_Str",formatSentence(position));
  }
  Context.getAsyncHttpClient().prepareGet(request).execute();
  return position;
}

Fixed version (ground truth):
@Override protected Position handlePosition(Position position){
  Device device=Context.getIdentityManager().getDeviceById(position.getDeviceId());
  String attributes=MiscFormatter.toJsonString(position.getAttributes());
  String request=url.replace("String_Node_Str",device.getUniqueId()).replace("String_Node_Str",String.valueOf(position.getDeviceId())).replace("String_Node_Str",String.valueOf(position.getProtocol())).replace("String_Node_Str",String.valueOf(position.getDeviceTime().getTime())).replace("String_Node_Str",String.valueOf(position.getFixTime().getTime())).replace("String_Node_Str",String.valueOf(position.getValid())).replace("String_Node_Str",String.valueOf(position.getLatitude())).replace("String_Node_Str",String.valueOf(position.getLongitude())).replace("String_Node_Str",String.valueOf(position.getAltitude())).replace("String_Node_Str",String.valueOf(position.getSpeed())).replace("String_Node_Str",String.valueOf(position.getCourse())).replace("String_Node_Str",calculateStatus(position));
  if (position.getAddress() != null) {
    try {
      request=request.replace("String_Node_Str",URLEncoder.encode(position.getAddress(),"String_Node_Str"));
    }
 catch (    UnsupportedEncodingException error) {
      Log.warning(error);
    }
  }
  if (request.contains("String_Node_Str")) {
    try {
      request=request.replace("String_Node_Str",URLEncoder.encode(attributes,"String_Node_Str"));
    }
 catch (    UnsupportedEncodingException error) {
      Log.warning(error);
    }
  }
  if (request.contains("String_Node_Str")) {
    request=request.replace("String_Node_Str",formatSentence(position));
  }
  Context.getAsyncHttpClient().prepareGet(request).execute();
  return position;
}