Skip to content

FacebookProvider crash with NullPointerException #263

@Caerbannog

Description

@Caerbannog
  • Android device: LG-D855
  • Android OS version: 5.0
  • Google Play Services version: 3.0.0
  • Firebase/Play Services SDK version: 9.0.2
  • FirebaseUI version: 0.4.1

Steps to reproduce:

I could not reproduce this. It must have happened after clicking "Login via Facebook". I have no idea of what the Facebook account was, so it may have had weird privacy settings.

Observed Results:

The following crash occured one time:
STACK_TRACE=java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.json.JSONObject.getString(java.lang.String)' on a null object reference
at com.firebase.ui.auth.provider.FacebookProvider$1.onCompleted(FacebookProvider.java:108)
at com.facebook.GraphRequest$1.a(SourceFile:304)
at com.facebook.GraphRequest$3.run(SourceFile:1379)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5272)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:909)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704)

Expected Results:

I any case, there should be no crash and the argument should be checked for Null.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions