PicassoProvider.context is sometimes null
See original GitHub issueAfter updating to 2.71828 started getting crashes:
Caused by: java.lang.IllegalStateException:
at com.squareup.picasso.Picasso.get (Picasso.java:681)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Developers - PicassoProvider.context is sometimes null -
After updating to 2.71828 started getting crashes: Caused by: java.lang.IllegalStateException: at com.squareup.picasso.Picasso.get (Picasso.java:681).
Read more >picasso throw an exception: context == null - Stack Overflow
i use it load image into view at RecyclerView, but throws an exception : context == null, and its occured when i got...
Read more >com.squareup.picasso3.RequestCreator.tag java code examples ...
Assign a tag to this request. Tags are an easy way to logically associate related requests that can be managed together e.g. paused,...
Read more >PicassoProvider.context is null 问题解决 - CSDN博客
报的堆栈如下:Caused by: java.lang.IllegalStateException: at com.squareup.picasso.Picasso.get (Picasso.java:681) at my.app.service.
Read more >Picasso 源码分析 - 掘金
public static Picasso get() { if (singleton == null) { synchronized (Picasso.class) { if (singleton == null) { if (PicassoProvider.context ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Having the same issue on
Motorola G5S plus
Android 7.1.1
Fixed in
Application.java
class using:Picasso.setSingletonInstance(new Picasso.Builder(this).build());
I can’t reproduce this on 7.0 myself.
An easy way to ensure this never happens is to create your own
Picasso
instance inApplication.onCreate
and then set it as the singleton instance withPicasso.setSingletonInstance
in that method.