TeamAmaze / AmazeFileManager

Material design file manager for Android
https://teamamaze.xyz
GNU General Public License v3.0
5.31k stars 1.57k forks source link

NPE on `GlideApp#with` #3597

Open amaze-issue-automation[bot] opened 2 years ago

amaze-issue-automation[bot] commented 2 years ago

Issue explanation (write below this line)

Exception

java.lang.NullPointerException: You cannot start a load on a not yet attached View or a Fragment where getActivity() returns null (which usually occurs when getActivity() is called before the Fragment is attached or after the Fragment is destroyed).
    at com.bumptech.glide.util.Preconditions.checkNotNull(Preconditions.java:29)
    at com.bumptech.glide.Glide.getRetriever(Glide.java:744)
    at com.bumptech.glide.Glide.with(Glide.java:813)
    at com.amaze.filemanager.GlideApp.with(GlideApp.java:110)
    at com.amaze.filemanager.adapters.RecyclerAdapter$1.lambda$onLoadFailed$0(RecyclerAdapter.java:1268)
    at com.amaze.filemanager.adapters.RecyclerAdapter$1.$r8$lambda$0RPp15KcLgKkfDucgxd_0n-BOX8(Unknown Source:0)
    at com.amaze.filemanager.adapters.RecyclerAdapter$1$$ExternalSyntheticLambda0.handleMessage(Unknown Source:4)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:223)
    at android.app.ActivityThread.main(ActivityThread.java:7664)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)


Enviado do Yahoo Mail no Android

VishnuSanal commented 2 years ago

dupe #1351? @VishalNehra

EmmanuelMess commented 1 year ago

dupe #1351? @VishalNehra

Similar, but different.