Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

'java.io.File java.io.File.getParentFile()' error in android #608

Open
nes123 opened this issue Nov 27, 2017 · 14 comments
Open

'java.io.File java.io.File.getParentFile()' error in android #608

nes123 opened this issue Nov 27, 2017 · 14 comments

Comments

@nes123
Copy link

nes123 commented Nov 27, 2017

Exception com.facebook.react.common.JavascriptException: Java exception in 'NativeModules' java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File java.io.File.getParentFile()' on a null object reference, stack: com.RNFetchBlob.RNFetchBlobFS.getSystemfolders

any ideas what can it be ?

@jslok
Copy link

jslok commented Nov 28, 2017

Same issue here, but only seen on one device so far on android 6.0.1. RN 0.49.3 and RN fetch blob 0.10.8

@gbdxl
Copy link

gbdxl commented Dec 5, 2017

+1

@chrusart
Copy link

chrusart commented Dec 5, 2017

#557

@manishoo
Copy link

I have the same issue

@juanamd
Copy link

juanamd commented Dec 25, 2017

Same issue here

@mannol
Copy link

mannol commented Jan 9, 2018

Same issue. Happens a lot on many different devices. Here's a stack trace:

java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File java.io.File.getParentFile()' on a null object reference, stack:
com.RNFetchBlob.RNFetchBlobFS.getSystemfolders@216
com.RNFetchBlob.RNFetchBlob.getConstants@84
com.facebook.react.bridge.JavaModuleWrapper.getConstants@140
android.os.Handler.handleCallback@815
android.os.Handler.dispatchMessage@104
com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage@31

@josenaves
Copy link

+1

1 similar comment
@saubcy
Copy link

saubcy commented Jan 14, 2018

+1

@josenaves
Copy link

@mannol which devices it happens ? For me, I saw it on a LGV520.

@mannol
Copy link

mannol commented Jan 19, 2018

@josenaves Well, I see it happening on at least 10 devices in production. What's interesting is that crashlytics reports that the crash happens when app is about 81% in focus, which could mean that the crash happens when the activity is being destroyed... Race condition while accessing the context maybe?

@kelset
Copy link

kelset commented Feb 6, 2018

It looks like @chrusart created a PR with the fix 🎉

#619 (comment)

@chrusart
Copy link

chrusart commented Feb 7, 2018

@kelset #636 have this fix too and few other improvements and bugfixes, in production for 3 weeks now and fixed crashes didn't occur yet, no new ones appeared.

@ZionChang
Copy link

+1

@SuhairZain
Copy link

@chrusart It seems like this repo is no longer maintained. Could you open a PR there? #636 (comment)

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