Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Upgrade to Facebook Android SDK 4.41.0? #759

Closed
phiferd opened this issue Apr 3, 2019 · 4 comments
Closed

Upgrade to Facebook Android SDK 4.41.0? #759

phiferd opened this issue Apr 3, 2019 · 4 comments

Comments

@phiferd
Copy link

phiferd commented Apr 3, 2019

I'm seeing app crashes due to a bug in the Facebook Android SDK Java library that was recently fixed here:

facebook/facebook-android-sdk@66d9c62

The fix is included in Facebook's SDK version 4.41.0. I realize it has only been out for 26 days, but I just wanted to see if others are having this issue and if there is a timeline for upgrading.

Including crash logs line from our app in case others are looking for the same:

Fatal Exception: java.lang.NullPointerException
Attempt to invoke virtual method 'boolean org.json.JSONObject.optBoolean(java.lang.String, boolean)' on a null object reference
com.facebook.UserSettingsManager$1.run

@phiferd
Copy link
Author

phiferd commented Apr 7, 2019

Does anyone have any insight on what ultimately causes the code to get into this state? If there's something I can do to prevent the NPE at the application level (e.g. "make sure you call X before you call Y") that would be fine as well. I can ask the same question on the FB SDK repo, but I assume they will just instruct me to download the updated version.

@diegodotta
Copy link

diegodotta commented Apr 15, 2019

Yeah, same here! The crashes started April 5th

@jayantpaliwal
Copy link

same here!

@peterpeterparker
Copy link
Collaborator

A new version of the plugin v5.0.0 has been released which include Fb SDK v5.0.2 thx to @guylando PR #751

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

No branches or pull requests

4 participants