App not working

java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=65659, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.codingblocks.weatherapp/com.codingblocks.weatherapp.ui.MainActivity}: java.lang.IllegalStateException: Can’t access the Fragment View’s LifecycleOwner when getView() is null i.e., before onCreateView() or after onDestroyView()
at android.app.ActivityThread.deliverResults(ActivityThread.java:5168)…

at com.codingblocks.weatherapp.ui.home.HomeFragment.invokeLocationAction(HomeFragment.kt:57)
at com.codingblocks.weatherapp.ui.home.HomeFragment.onRequestPermissionsResult(HomeFragment.kt:150)

@amitmungare This will help you https://github.com/coding-blocks-archives/WeatherApp/issues/1

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.