You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue details / Repro steps / Use case background:
NullPointerException in RequestManagerRetriever.findAllSupportFragmentsWithViews() in Glide.with(View)
in findAllSupportFragmentsWithViews() , topLevelFragments Collection is not null and not empty too.
but, topLevelFragments have null, so NullPointerException in for-each.
I received crash reporting, but I could not reproduction.
I think that will occur when called Glide.with after view is destroyed.
But, I tried block after onDetachedFromWindow, It did not improve.
Glide load line / GlideModule (if any) / list Adapter code (if any):
publicvoidsetImageUrl(@NonNullStringurl) {
Glide.with(this).load(url).into(this); // "this" is ImageView instance
}
publicvoidsetImageUrl(@NonNullStringurl) {
if (!isViewDestroyed) { // "true" after called onDetachedFromWindowGlide.with(this).load(url).into(this); // "this" is ImageView instance
}
}
sorry, I am not good at English.
Glide Version: 4.0.0 RC0
Integration libraries: okhttp3-integration 4.0.0 RC0
Device/Android Version: Android 5.1
Issue details / Repro steps / Use case background:
NullPointerException in
RequestManagerRetriever.findAllSupportFragmentsWithViews()
inGlide.with(View)
in
findAllSupportFragmentsWithViews()
,topLevelFragments
Collection is not null and not empty too.but,
topLevelFragments
havenull
, so NullPointerException in for-each.I received crash reporting, but I could not reproduction.
I think that will occur when called
Glide.with
after view is destroyed.But, I tried block after onDetachedFromWindow, It did not improve.
Glide load line /
GlideModule
(if any) / list Adapter code (if any):NPE occurred too.
Stack trace / LogCat:
RequestManagerRetriever.java#189 fragment is null
Is it bug of glide? or Is my usage wrong?
The text was updated successfully, but these errors were encountered: