Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

[CRASH IllegalStateException] Fragment not attached to a context #16

Open
majid701 opened this issue Jun 15, 2020 · 0 comments
Open

[CRASH IllegalStateException] Fragment not attached to a context #16

majid701 opened this issue Jun 15, 2020 · 0 comments

Comments

@majid701
Copy link

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?

@majid701 majid701 changed the title CRASH Fatal Exception: java.lang.IllegalStateException CRASH IllegalStateException Fragment not attached to a context Jun 16, 2020
@majid701 majid701 changed the title CRASH IllegalStateException Fragment not attached to a context [CRASH IllegalStateException] Fragment not attached to a context Jun 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant