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.

java.lang.NullPointerException: SimpleDraweeView was not initialized!

See original GitHub issue

I am getting a few crash reports with this exception using Fresco version 0.4:

Caused by: java.lang.NullPointerException: SimpleDraweeView was not initialized!

Fresco is initialized very early in my applications onCreate() and I only have this problem with a few selected uses whom I cannot get in touch with.

I’m sorry I can not give you any more information than this. Please close the issue if you can’t do anything about this, I just wanted to let you know the problem is out there. I will update this issue if I learn more about it.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

15reactions
tyronencommented, May 21, 2015

Fresco.initialize needs to be called before setContentView in your app.

3reactions
SuhairZaincommented, Jun 29, 2015

Hi, I have the same issue. I call Fresco.initialize(context) in my MainActivity. And this error was reported in an Activity which was called later(where I did not call initialize). Do I have to call initialize() and shutdown() in every Activity or do I have to do it only once for the whole application (before setContentView() ofcourse)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SimpleDraweeView was not initialized error using Fresco ...
I'm trying to implement Fresco in my NS Vue app. I have this in my main.js. Vue.registerElement('FrescoDrawee', () => require("nativescript- ...
Read more >
SimpleDraweeView was not initialized异常引出的一个问题 - 掘金
java 里面可以加启动参数来增加类卸载回调,但android里面就不太方便了。为了验证这个问题,在Application的onCreate里面引用一个SimpleDraweeView对象, ...
Read more >
SimpleDraweeView was not initialized异常引出的一个问题
java 里面可以加启动参数来增加类卸载回调,但android里面就不太方便了。为了验证这个问题,在Application的onCreate里面引用一个SimpleDraweeView对象, ...
Read more >
Docs›Getting Started - Fresco
Starting with Fresco version 2.1.0, you can also use a Java-only Fresco version ... You should only do this 1 time, so placing...
Read more >
com.facebook.imagepipeline.core.ImagePipelineFactory ...
This page shows Java code examples of com.facebook.imagepipeline.core. ... catch (NullPointerException e) { // Image pipeline is not initialized ...
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