guolindev / PermissionX

An open source Android library that makes handling runtime permissions extremely easy.
Apache License 2.0
3.34k stars 386 forks source link

lateinit property task has not been initialized #275

Open Diper1996 opened 3 months ago

Diper1996 commented 3 months ago

Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1394875351, result=0, data=null} to activity {com.xxx.xxx/com.xxx.xxx.activity.Activity}: kotlin.UninitializedPropertyAccessException: lateinit property task has not been initialized at android.app.ActivityThread.deliverResults(ActivityThread.java:5738) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:5147) ... 13 more Caused by: kotlin.UninitializedPropertyAccessException: lateinit property task has not been initialized at com.permissionx.guolindev.request.InvisibleFragment.forwardToSettingsLauncher$lambda-6(InvisibleFragment.java:94) at com.permissionx.guolindev.request.-$$Lambda$E1Oa91F4JQaad9ne2JkUvvAXjTs.a(a.java:4) at androidx.activity.result.ActivityResultRegistry.doDispatch(ActivityResultRegistry.java:392) at androidx.activity.result.ActivityResultRegistry.dispatchResult(ActivityResultRegistry.java:351) at androidx.activity.ComponentActivity.onActivityResult(ComponentActivity.java:647) at androidx.fragment.app.FragmentActivity.onActivityResult(FragmentActivity.java:164) at android.app.Activity.dispatchActivityResult(Activity.java:8974) at android.app.ActivityThread.deliverResults(ActivityThread.java:5731)