Program: 35631
Project: 35631
Buggy source:
@Optional @OnClick(R.id.done_button) public void onDoneButtonClick(){
  if (!isPublicCall && adapter.getSelectedPositions().size() == 1) {
    RetrofitBucket retrofitBucket=ApiUtils.getRetrofitBucketForCreateRoom(userEntity.getBaseUrl(),"String_Node_Str",((UserItem)adapter.getItem(adapter.getSelectedPositions().get(0))).getModel().getUserId(),null);
    ncApi.createRoom(ApiUtils.getCredentials(userEntity.getUsername(),userEntity.getToken()),retrofitBucket.getUrl(),retrofitBucket.getQueryMap()).subscribeOn(Schedulers.newThread()).observeOn(AndroidSchedulers.mainThread()).subscribe(new Observer<RoomOverall>(){
      @Override public void onSubscribe(      Disposable d){
      }
      @Override public void onNext(      RoomOverall roomOverall){
        if (getActivity() != null) {
          overridePushHandler(new NoOpControllerChangeHandler());
          overridePopHandler(new NoOpControllerChangeHandler());
          Intent callIntent=new Intent(getActivity(),CallActivity.class);
          Bundle bundle=new Bundle();
          bundle.putString(BundleKeys.KEY_ROOM_TOKEN,roomOverall.getOcs().getData().getToken());
          bundle.putParcelable(BundleKeys.KEY_USER_ENTITY,Parcels.wrap(userEntity));
          callIntent.putExtras(bundle);
          startActivity(callIntent);
        }
      }
      @Override public void onError(      Throwable e){
      }
      @Override public void onComplete(){
      }
    }
);
  }
 else {
    Bundle bundle=new Bundle();
    Room.RoomType roomType;
    if (isPublicCall) {
      roomType=Room.RoomType.ROOM_PUBLIC_CALL;
    }
 else {
      roomType=Room.RoomType.ROOM_GROUP_CALL;
    }
    bundle.putParcelable(BundleKeys.KEY_CONVERSATION_TYPE,Parcels.wrap(roomType));
    ArrayList<String> userIds=new ArrayList<>();
    Set<Integer> selectedPositions=adapter.getSelectedPositionsAsSet();
    for (    int selectedPosition : selectedPositions) {
      if (adapter.getItem(selectedPosition) instanceof UserItem) {
        UserItem userItem=(UserItem)adapter.getItem(selectedPosition);
        userIds.add(userItem.getModel().getUserId());
      }
    }
    bundle.putStringArrayList(BundleKeys.KEY_INVITED_PARTICIPANTS,userIds);
    bundle.putInt(BundleKeys.KEY_OPERATION_CODE,11);
    prepareAndShowBottomSheetWithBundle(bundle);
  }
}

Fixed version (ground truth):
@Optional @OnClick(R.id.done_button) public void onDoneButtonClick(){
  if (!isPublicCall && adapter.getSelectedPositions().size() == 1) {
    RetrofitBucket retrofitBucket=ApiUtils.getRetrofitBucketForCreateRoom(userEntity.getBaseUrl(),"String_Node_Str",((UserItem)adapter.getItem(adapter.getSelectedPositions().get(0))).getModel().getUserId(),null);
    ncApi.createRoom(ApiUtils.getCredentials(userEntity.getUsername(),userEntity.getToken()),retrofitBucket.getUrl(),retrofitBucket.getQueryMap()).subscribeOn(Schedulers.newThread()).observeOn(AndroidSchedulers.mainThread()).subscribe(new Observer<RoomOverall>(){
      @Override public void onSubscribe(      Disposable d){
      }
      @Override public void onNext(      RoomOverall roomOverall){
        if (getActivity() != null) {
          Intent callIntent=new Intent(getActivity(),CallActivity.class);
          Bundle bundle=new Bundle();
          bundle.putString(BundleKeys.KEY_ROOM_TOKEN,roomOverall.getOcs().getData().getToken());
          bundle.putParcelable(BundleKeys.KEY_USER_ENTITY,Parcels.wrap(userEntity));
          callIntent.putExtras(bundle);
          startActivity(callIntent);
          new Handler().postDelayed(() -> getRouter().popCurrentController(),100);
        }
      }
      @Override public void onError(      Throwable e){
      }
      @Override public void onComplete(){
      }
    }
);
  }
 else {
    Bundle bundle=new Bundle();
    Room.RoomType roomType;
    if (isPublicCall) {
      roomType=Room.RoomType.ROOM_PUBLIC_CALL;
    }
 else {
      roomType=Room.RoomType.ROOM_GROUP_CALL;
    }
    bundle.putParcelable(BundleKeys.KEY_CONVERSATION_TYPE,Parcels.wrap(roomType));
    ArrayList<String> userIds=new ArrayList<>();
    Set<Integer> selectedPositions=adapter.getSelectedPositionsAsSet();
    for (    int selectedPosition : selectedPositions) {
      if (adapter.getItem(selectedPosition) instanceof UserItem) {
        UserItem userItem=(UserItem)adapter.getItem(selectedPosition);
        userIds.add(userItem.getModel().getUserId());
      }
    }
    bundle.putStringArrayList(BundleKeys.KEY_INVITED_PARTICIPANTS,userIds);
    bundle.putInt(BundleKeys.KEY_OPERATION_CODE,11);
    prepareAndShowBottomSheetWithBundle(bundle);
  }
}