It's telling you that "`V` is nullable, therefore ...
# android
d
It's telling you that "`V` is nullable, therefore
viewModel
could be null, which means we can't necessarily get its class". You probably want the upper bound on
V
to be non-nullable - change the class header to
class ViewModelProviderFactory<V : Any>
👍 1
💯 1
2
t
it worked