Open nes123 opened 6 years ago
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
+1
I have the same issue
Same issue here
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
+1
+1
@mannol which devices it happens ? For me, I saw it on a LGV520.
@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?
It looks like @chrusart created a PR with the fix 🎉
https://github.com/wkh237/react-native-fetch-blob/pull/619#issuecomment-357925638
@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.
+1
@chrusart It seems like this repo is no longer maintained. Could you open a PR there? https://github.com/wkh237/react-native-fetch-blob/pull/636#issuecomment-375953433
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 ?