Program: 34111
Project: 34111
Buggy source:
@Override protected Drawable doInBackground(Void... params){
  if (CamerasActivity.stopImageLoading) {
    this.cancel(true);
  }
  try {
    ArrayList<Cookie> cookies=new ArrayList<Cookie>();
    Drawable drawable=null;
    String externalJpgUrl=evercamCamera.getExternalSnapshotUrl();
    String internalJpgUrl=null;
    if (evercamCamera.hasCredentials()) {
      if (!evercamCamera.getExternalHost().isEmpty()) {
        if (evercamCamera.getStatus().equals(CameraStatus.ACTIVE)) {
          drawable=Commons.getDrawablefromUrlAuthenticated(externalJpgUrl,evercamCamera.getUsername(),evercamCamera.getPassword(),cookies,3000);
        }
        if (drawable == null) {
          if (!evercamCamera.getInternalHost().isEmpty()) {
            internalJpgUrl=evercamCamera.getInternalSnapshotUrl();
            drawable=Commons.getDrawablefromUrlAuthenticated(internalJpgUrl,evercamCamera.getUsername(),evercamCamera.getPassword(),cookies,3000);
          }
        }
      }
 else {
        drawable=Commons.getDrawablefromUrlAuthenticated(internalJpgUrl,evercamCamera.getUsername(),evercamCamera.getPassword(),cookies,3000);
      }
    }
 else {
      if (evercamCamera.camera != null) {
        if (evercamCamera.camera.isOnline()) {
          InputStream stream=evercamCamera.camera.getSnapshotFromEvercam();
          drawable=Drawable.createFromStream(stream,"String_Node_Str");
        }
      }
 else {
        Log.e(TAG,"String_Node_Str");
      }
    }
    if (cookies.size() > 0) {
      evercamCamera.cookies=cookies;
    }
    return drawable;
  }
 catch (  OutOfMemoryError e) {
    Log.e(TAG,e.toString() + "String_Node_Str" + Log.getStackTraceString(e));
    return null;
  }
catch (  Exception e) {
    Log.e(TAG,"String_Node_Str" + e.getMessage());
  }
  return null;
}

Fixed version (ground truth):
@Override protected Drawable doInBackground(Void... params){
  try {
    ArrayList<Cookie> cookies=new ArrayList<Cookie>();
    Drawable drawable=null;
    String externalJpgUrl=evercamCamera.getExternalSnapshotUrl();
    String internalJpgUrl=null;
    if (evercamCamera.hasCredentials()) {
      if (!evercamCamera.getExternalHost().isEmpty()) {
        if (evercamCamera.getStatus().equals(CameraStatus.ACTIVE)) {
          drawable=Commons.getDrawablefromUrlAuthenticated(externalJpgUrl,evercamCamera.getUsername(),evercamCamera.getPassword(),cookies,3000);
        }
        if (drawable == null) {
          if (!evercamCamera.getInternalHost().isEmpty()) {
            internalJpgUrl=evercamCamera.getInternalSnapshotUrl();
            drawable=Commons.getDrawablefromUrlAuthenticated(internalJpgUrl,evercamCamera.getUsername(),evercamCamera.getPassword(),cookies,3000);
          }
        }
      }
 else {
        drawable=Commons.getDrawablefromUrlAuthenticated(internalJpgUrl,evercamCamera.getUsername(),evercamCamera.getPassword(),cookies,3000);
      }
    }
 else {
      if (evercamCamera.camera != null) {
        if (evercamCamera.camera.isOnline()) {
          InputStream stream=evercamCamera.camera.getSnapshotFromEvercam();
          drawable=Drawable.createFromStream(stream,"String_Node_Str");
        }
      }
 else {
        Log.e(TAG,"String_Node_Str");
      }
    }
    if (cookies.size() > 0) {
      evercamCamera.cookies=cookies;
    }
    return drawable;
  }
 catch (  OutOfMemoryError e) {
    Log.e(TAG,e.toString() + "String_Node_Str" + Log.getStackTraceString(e));
    return null;
  }
catch (  Exception e) {
    Log.e(TAG,"String_Node_Str" + e.getMessage());
  }
  return null;
}