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

[Crash] NullPointerException - com.facebook.login.LoginFragment.onActivityResult #1105

Open
5 tasks done
raghav2945 opened this issue Aug 27, 2022 · 4 comments
Open
5 tasks done

Comments

@raghav2945
Copy link

raghav2945 commented Aug 27, 2022

Checklist before submitting a bug report

Java version

11

Android version

Android 9, Android 10, Android 11

Android SDK version

com.applovin.mediation:facebook-adapter:6.11.0.5

Installation platform & version

Gradle

Package

Login

Goals

We are experiencing a crash due to the most recent SDK upgrade. From com.applovin.mediation:facebook-adapter:6.11.0.4, to com.applovin.mediation:facebook-adapter:6.11.0.5. This is now within the top 10 crashes for our application reported on Firebase. Thus, we require assistance to manage this crash.

Expected results

No crash

Actual results

A crash has been reported via firebase, with the stack-trace shown below.

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.facebook.login.LoginClient.w(int, int, android.content.Intent)' on a null object reference
       at com.facebook.login.LoginFragment.onActivityResult(LoginFragment.java:183)
       at androidx.fragment.app.FragmentManager$8.onActivityResult(FragmentManager.java:2689)
       at androidx.fragment.app.FragmentManager$8.onActivityResult(FragmentManager.java:2669)
       at androidx.activity.result.ActivityResultRegistry.register(ActivityResultRegistry.java:229)
       at androidx.fragment.app.FragmentManager.attachController(FragmentManager.java:2667)
       at androidx.fragment.app.FragmentController.attachHost(FragmentController.java:117)
       at androidx.fragment.app.FragmentActivity.lambda$init$3(FragmentActivity.java:140)
       at androidx.fragment.app.FragmentActivity.$r8$lambda$euPNEtWNfVdMY89Jt5kWt_WEHqw(FragmentActivity.java)
       at androidx.fragment.app.FragmentActivity$$InternalSyntheticLambda$0$cef12c4fb802c6ea87b1fbddce076644080634cb6e3f7fb823e201a9f4f7f1ec$3.onContextAvailable(FragmentActivity.java:2)
       at androidx.activity.contextaware.ContextAwareHelper.dispatchOnContextAvailable(ContextAwareHelper.java:99)
       at androidx.activity.ComponentActivity.onCreate(ComponentActivity.java:352)
       at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:217)
       at com.facebook.FacebookActivity.onCreate(FacebookActivity.kt:63)
       at android.app.Activity.performCreate(Activity.java:7110)
       at android.app.Activity.performCreate(Activity.java:7101)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2922)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3047)
       at android.app.ActivityThread.-wrap11(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1777)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:166)
       at android.app.ActivityThread.main(ActivityThread.java:6861)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:450)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

Steps to reproduce

Unknown.

Code samples & details

// INSERT YOUR CODE HERE
@kiroj305
Copy link

kiroj305 commented Nov 3, 2022

@raghav2945 , did you get any update from FB on the issue you reported by chance?

@hello-soon
Copy link

hello-soon commented Sep 19, 2023

has same issue.
with
implementation "com.facebook.android:facebook-login:12.3.0"
implementation "com.facebook.android:facebook-core:12.3.0"
implementation "com.facebook.android:facebook-common:12.3.0"


maybe, unconfirmed,
androidx.fragment:fragment:1.5.5 (It turns out to be version 1.3.3)

@zfnian
Copy link

zfnian commented Dec 30, 2023

I met with this same issue, any update or assistance?

@zfnian
Copy link

zfnian commented Dec 31, 2023

@jingping2015 Can you give a help? Thanks a lot~

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

No branches or pull requests

4 participants