Program: 35657
Project: 35657
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  NextcloudTalkApplication.getSharedApplication().getComponentApplication().inject(this);
  requestWindowFeature(Window.FEATURE_NO_TITLE);
  getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD| WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED| WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
  getWindow().getDecorView().setSystemUiVisibility(getSystemUiVisibility());
  setContentView(R.layout.activity_call);
  ButterKnife.bind(this);
  roomToken=getIntent().getExtras().getString("String_Node_Str","String_Node_Str");
  userEntity=Parcels.unwrap((Parcelable)getIntent().getExtras().get("String_Node_Str"));
  callSession="String_Node_Str";
  credentials=ApiHelper.getCredentials(userEntity.getUsername(),userEntity.getToken());
  callControls.setZ(100.0f);
  basicInitialization();
  if (userUtils.getCurrentUser() != null && userUtils.getCurrentUser() != userEntity) {
    userUtils.createOrUpdateUser(userEntity.getUsername(),userEntity.getToken(),userEntity.getBaseUrl(),null,null,true).subscribe(new Observer<UserEntity>(){
      @Override public void onSubscribe(      Disposable d){
      }
      @Override public void onNext(      UserEntity userEntity){
        cookieManager.getCookieStore().removeAll();
        userUtils.disableAllUsersWithoutId(userEntity.getId());
        initViews();
        checkPermissions();
      }
      @Override public void onError(      Throwable e){
      }
      @Override public void onComplete(){
      }
    }
);
  }
 else {
    initViews();
    checkPermissions();
  }
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  NextcloudTalkApplication.getSharedApplication().getComponentApplication().inject(this);
  requestWindowFeature(Window.FEATURE_NO_TITLE);
  getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD| WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED| WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
  getWindow().getDecorView().setSystemUiVisibility(getSystemUiVisibility());
  setContentView(R.layout.activity_call);
  ButterKnife.bind(this);
  roomToken=getIntent().getExtras().getString("String_Node_Str","String_Node_Str");
  userEntity=Parcels.unwrap(getIntent().getExtras().getParcelable("String_Node_Str"));
  callSession="String_Node_Str";
  credentials=ApiHelper.getCredentials(userEntity.getUsername(),userEntity.getToken());
  callControls.setZ(100.0f);
  basicInitialization();
  if (!userEntity.getCurrent()) {
    userUtils.createOrUpdateUser(userEntity.getUsername(),userEntity.getToken(),userEntity.getBaseUrl(),null,null,true).subscribe(new Observer<UserEntity>(){
      @Override public void onSubscribe(      Disposable d){
      }
      @Override public void onNext(      UserEntity userEntity){
        cookieManager.getCookieStore().removeAll();
        userUtils.disableAllUsersWithoutId(userEntity.getId());
        if (getIntent().getExtras().containsKey("String_Node_Str")) {
          handleFromNotification();
        }
 else {
          initViews();
          checkPermissions();
        }
      }
      @Override public void onError(      Throwable e){
      }
      @Override public void onComplete(){
      }
    }
);
  }
 else   if (getIntent().getExtras().containsKey("String_Node_Str")) {
    handleFromNotification();
  }
 else {
    initViews();
    checkPermissions();
  }
}