question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PicassoProvider.context is sometimes null

See original GitHub issue

After updating to 2.71828 started getting crashes:

Caused by: java.lang.IllegalStateException: 
  at com.squareup.picasso.Picasso.get (Picasso.java:681)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
harshvishucommented, Apr 9, 2018

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());

5reactions
JakeWhartoncommented, Apr 3, 2018

I can’t reproduce this on 7.0 myself.

An easy way to ensure this never happens is to create your own Picasso instance in Application.onCreate and then set it as the singleton instance with Picasso.setSingletonInstance in that method.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found