Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException in WebpFrameLoader#onFrameReady #102

Closed
superxlcr opened this issue Oct 31, 2022 · 1 comment
Closed

NullPointerException in WebpFrameLoader#onFrameReady #102

superxlcr opened this issue Oct 31, 2022 · 1 comment
Labels

Comments

@superxlcr
Copy link

crash stacktrace:
java.lang.NullPointerException: Attempt to invoke interface method 'void com.bumptech.glide.integration.webp.decoder.WebpFrameLoader$a.onFrameReady()' on a null object reference
at com.bumptech.glide.integration.webp.decoder.WebpFrameLoader.onFrameReady(WebpFrameLoader.java)
at com.bumptech.glide.integration.webp.decoder.WebpFrameLoader$b.handleMessage(WebpFrameLoader.java)
at android.os.Handler.dispatchMessage(Handler.java)
...

library version: 2.0.4.11.0

related code:
// The callbacks may unregister when onFrameReady is called, so iterate in reverse to avoid
// concurrent modifications.
for (int i = callbacks.size() - 1; i >= 0; i--) {
FrameCallback cb = callbacks.get(i);
cb.onFrameReady();
}

it seems like the FrameCallback got from callbacks list is null

@zjupure zjupure added the bug label Nov 14, 2022
@zjupure
Copy link
Owner

zjupure commented Nov 26, 2022

You subscribe a null callback to WebpFrameLoader?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants