hoc081098 / hoc081098/ViewBindingDelegate

IllegalStateException Can't access the Fragment View's LifecycleOwner

Open
#180 1 comment 0 reactions 1 assignee Claimed by @hoc081098 View on GitHub
Dominant language
Kotlin
Stars
115
Forks
14
PR merge metrics
No merged PRs in 30d

Description

In multiple fragments, we are facing the same issue.

`Fatal Exception: java.lang.IllegalStateException: Can't access the Fragment View's LifecycleOwner for c0{7609394} (cc0421c4-bee5-4696-b899-4d95ab41c37b id=0x7f0a01d8) when getView() is null i.e., before onCreateView() or after onDestroyView()
`

we are declaring and initialising the binding as follows

` private val binding by viewBinding(FragmentXBinding::bind) `

Any hint or help would be highly appreciated

PS: we are using latest version **1.4.0**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.