Program: 35661
Project: 35661
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(getIntent().getExtras().getParcelable("String_Node_Str"));
  callSession="String_Node_Str";
  credentials=ApiHelper.getCredentials(userEntity.getUsername(),userEntity.getToken());
  networkBroadcastReceier=new BroadcastReceiver(){
    @Override public void onReceive(    Context context,    Intent intent){
      if (!Device.getNetworkType(context).equals(JobRequest.NetworkType.ANY)) {
        if (!leavingCall) {
          startPullingSignalingMessages(true);
        }
 else {
          hangup(true);
        }
      }
    }
  }
;
  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();
  }
}

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());
  networkBroadcastReceier=new BroadcastReceiver(){
    @Override public void onReceive(    Context context,    Intent intent){
      if (!Device.getNetworkType(context).equals(JobRequest.NetworkType.ANY)) {
        if (!leavingCall) {
          startPullingSignalingMessages(true);
        }
 else {
          hangup(true);
        }
      }
    }
  }
;
  callControls.setZ(100.0f);
  basicInitialization();
  if (!userEntity.getCurrent()) {
    userUtils.createOrUpdateUser(userEntity.getUsername(),userEntity.getToken(),userEntity.getBaseUrl(),null,null,true,null).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();
  }
}