Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException in FB.java Line 378 #18

Closed
patrickpaul opened this issue Mar 4, 2016 · 7 comments
Closed

NullPointerException in FB.java Line 378 #18

patrickpaul opened this issue Mar 4, 2016 · 7 comments

Comments

@patrickpaul
Copy link

After deploying to our customers we found a decent percentage of users running into NullPointerExceptions when logging in.

Stack Trace:
com.facebook.unity.FB.getKeyHash (FB.java:378)
com.facebook.unity.FBLogin.login (FBLogin.java:92)
com.facebook.unity.FBLogin.loginWithReadPermissions (FBLogin.java:42)
com.facebook.unity.FBUnityLoginActivity.onCreate (FBUnityLoginActivity.java:40)
android.app.Activity.performCreate (Activity.java:5372)
dalvik.system.NativeStart.main (NativeStart.java)

We were able to fix locally by adding NullPointerException to the list of caught exceptions near line 378 in FB.java but this potentially hides something that should be fixed.

Thank you!

@swiese
Copy link
Contributor

swiese commented Mar 10, 2016

I think what has happened here is that the unity activity has died when you come back from login. We then try to access to get the keyhash and crash. I'll look at fixing this in the next release

PackageInfo info = getUnityActivity().getPackageManager().getPackageInfo(

@MixMasterRickyC
Copy link

I've done the same as Patrick and added the NullPointerException, I've not personally been able to recreate the issue but looking through the Google Play Developer Console it's our number one crash issue.

I've subscribe to this issue but is there an eta on the next version?
Thanks.

@xataxxx
Copy link

xataxxx commented Apr 10, 2016

I see a lot of these as well for my users...

@xataxxx
Copy link

xataxxx commented Apr 24, 2016

Is this fixed now? I see in the 7.5.0 changelog there's a Fixed: NPE on Android when Unity activity was killed during login flow.

@Nitin-Joshi-perk
Copy link

Hope this is fixed in with V7.5

@swiese
Copy link
Contributor

swiese commented May 31, 2016

This should have been fixed in 7.5.0

@swiese swiese closed this as completed May 31, 2016
@TanveerakaRocker
Copy link

@swiese , we are also seeing this issue in production release, We are using FB SDK 7.4.0, is this fixed in 7.5.0?

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

No branches or pull requests

6 participants