com.bumptech.glide.Registry$NoModelLoaderAvailableException: Failed to find any ModelLoaders
@Override
public boolean handles(Movie movie) {
return true;
}
You need to do this or else Glide will ignore your ModelLoader, thinking it does not handle the provided Movie
model.
NoModelLoaderAvailableException happened when no
{@linkcom.bumptech.glide.load.model.ModelLoader} is registered for a given
model class, and that fixed with @talkLittle answer, and plus on that Movie should implement equals()
and hashCode()
to get caching to work correctly.
The new NPE happened because you accepted @Nullable
would try @NonNull
annotation.