my binder is wrong and I dont really know why... I...
# android
j
my binder is wrong and I dont really know why... I think it has to do with
FragmentRegisterBinding
because Im not sure where it comes from? Is it auto generated? The code krashes as
this.lifecycleOwner = viewLifecycleOwner
and the error message is
it must not be null
Copy code
val binding = DataBindingUtil.inflate<FragmentRegisterBinding>(
            inflater, R.layout.fragment_register_firstname,
            container, false
        ).apply {
            this.lifecycleOwner = viewLifecycleOwner
            this.viewModel = viewModel
        }