[CRASH IllegalStateException] Fragment not attached to a context
majid701 opened this issue · 0 comments
Fatal Exception: java.lang.IllegalStateException: Fragment BottomSheetImagePicker{f018108 (68ca9b62-3687-46ba-8b5b-af03bbc42f90)} not attached to a context. at androidx.fragment.app.Fragment.requireContext(Fragment.java:774) at androidx.fragment.app.Fragment.getResources(Fragment.java:838) at com.kroegerama.imgpicker.BottomSheetImagePicker$onCreateDialog$$inlined$apply$lambda$1.onShow(BottomSheetImagePicker.kt:165) at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1595) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:237) at android.app.ActivityThread.main(ActivityThread.java:8016) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076)
Received this crash multiple times in my app in procuction
Device: Galaxy S10+ running android 10
Does anyone know what is the cause of this?