fresco: java.lang.NullPointerException: SimpleDraweeView was not initialized!
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.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 15 (2 by maintainers)
Commits related to this issue
- hopefully fixed some annoying crashes. See https://github.com/facebook/fresco/issues/293 — committed to sidit77/ImgurViewer by sidit77 a year ago
Fresco.initialize needs to be called before setContentView in your app.
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)?