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

Unable to get provider com.RNFetchBlob.Utils.FileProvider #847

Open
florindumitru opened this issue Jun 15, 2023 · 0 comments
Open

Unable to get provider com.RNFetchBlob.Utils.FileProvider #847

florindumitru opened this issue Jun 15, 2023 · 0 comments

Comments

@florindumitru
Copy link

florindumitru commented Jun 15, 2023

In crashlytics I get the following crash:

FileProvider.attachInfo

Fatal Exception: java.lang.RuntimeException: Unable to get provider com.RNFetchBlob.Utils.FileProvider: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String[] java.lang.String.split(java.lang.String)' on a null object reference
       at android.app.ActivityThread.installProvider(ActivityThread.java:7236)
       at android.app.ActivityThread.installContentProviders(ActivityThread.java:6723)
       at android.app.ActivityThread.handleInstallProvider(ActivityThread.java:3727)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2019)
       at android.os.Handler.dispatchMessage(Handler.java:107)
       at android.os.Looper.loop(Looper.java:214)
       at android.app.ActivityThread.main(ActivityThread.java:7649)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:503)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

The provider com.RNFetchBlob.Utils.FileProvider exists in the app, I even checked the release apk and is there(in the providers list)
Seems to happen only when the app is in the background, in the first 5 seconds after the app starts(crashlytics stats).

I cannot reproduce this crash, but users keep having this issue.

Any idea please, or anyone who experience this issue ?

"react-native": "0.68.5",
"rn-fetch-blob": "0.12.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

1 participant