Program: 163677
Project: 163677
Buggy source:
/** 
 * Call createInput() without automatic gzip decompression.
 */
public InputStream createInputRaw(String filename){
  InputStream stream=null;
  if (filename == null)   return null;
  if (filename.length() == 0) {
    return null;
  }
  if (filename.indexOf("String_Node_Str") != -1) {
    try {
      HttpGet httpRequest=null;
      httpRequest=new HttpGet(URI.create(filename));
      HttpClient httpclient=new DefaultHttpClient();
      HttpResponse response=(HttpResponse)httpclient.execute(httpRequest);
      HttpEntity entity=response.getEntity();
      BufferedHttpEntity bufHttpEntity=new BufferedHttpEntity(entity);
      return bufHttpEntity.getContent();
    }
 catch (    MalformedURLException mfue) {
    }
catch (    FileNotFoundException fnfe) {
    }
catch (    IOException e) {
      e.printStackTrace();
      return null;
    }
  }
  AssetManager assets=getAssets();
  try {
    stream=assets.open(filename);
    if (stream != null) {
      return stream;
    }
  }
 catch (  IOException e) {
  }
  File absFile=new File(filename);
  if (absFile.exists()) {
    try {
      stream=new FileInputStream(absFile);
      if (stream != null) {
        return stream;
      }
    }
 catch (    FileNotFoundException fnfe) {
    }
  }
  File sketchFile=new File(sketchPath(filename));
  if (sketchFile.exists()) {
    try {
      stream=new FileInputStream(sketchFile);
      if (stream != null) {
        return stream;
      }
    }
 catch (    FileNotFoundException fnfe) {
    }
  }
  Context context=getApplicationContext();
  try {
    stream=context.openFileInput(filename);
    if (stream != null) {
      return stream;
    }
  }
 catch (  FileNotFoundException e) {
  }
  return null;
}

Fixed version (ground truth):
/** 
 * Call createInput() without automatic gzip decompression.
 */
public InputStream createInputRaw(String filename){
  InputStream stream=null;
  if (filename == null)   return null;
  if (filename.length() == 0) {
    return null;
  }
  if (filename.indexOf("String_Node_Str") != -1) {
    try {
      HttpGet httpRequest=null;
      httpRequest=new HttpGet(URI.create(filename));
      HttpClient httpclient=new DefaultHttpClient();
      HttpResponse response=(HttpResponse)httpclient.execute(httpRequest);
      HttpEntity entity=response.getEntity();
      return entity.getContent();
    }
 catch (    MalformedURLException mfue) {
    }
catch (    FileNotFoundException fnfe) {
    }
catch (    IOException e) {
      e.printStackTrace();
      return null;
    }
  }
  AssetManager assets=getAssets();
  try {
    stream=assets.open(filename);
    if (stream != null) {
      return stream;
    }
  }
 catch (  IOException e) {
  }
  File absFile=new File(filename);
  if (absFile.exists()) {
    try {
      stream=new FileInputStream(absFile);
      if (stream != null) {
        return stream;
      }
    }
 catch (    FileNotFoundException fnfe) {
    }
  }
  File sketchFile=new File(sketchPath(filename));
  if (sketchFile.exists()) {
    try {
      stream=new FileInputStream(sketchFile);
      if (stream != null) {
        return stream;
      }
    }
 catch (    FileNotFoundException fnfe) {
    }
  }
  Context context=getApplicationContext();
  try {
    stream=context.openFileInput(filename);
    if (stream != null) {
      return stream;
    }
  }
 catch (  FileNotFoundException e) {
  }
  return null;
}